跳转至

Result API AuthV4

Book Mark

AuthV4 Status Code setup signIn signOut connect
disconnect selectConflict isAutoSignIn getPlayerInfo getProfile
showSignIn showConflictSelection showProfile showCafe showInquiry
showTerms showAdultConfirm checkProvider checkMaintenance checkBlacklist
setProviderChangedListener getProviderFriendsList resolveConflict showGameCenterLoginCancelDialog getAgeGateU13
requestPermissionViewData

AuthV4 HIVE user authentication status code

void checkAuthenticationState(ResultAPI result) {
    switch(result.code) {
        /***** AuthV4 HIVE user authentication status codes *****/
        case ResultAPI.Code.AuthV4InvalidServerResponse:
        // Please contact HIVE with the message received.
        break;
        case ResultAPI.Code.AuthV4ConflictPlayer:
        // Perform logic for account conflict.
        break;
        case ResultAPI.Code.AuthV4UserInBlacklist:
        // Prevent the account from proceeding with the game.
        break;
        case ResultAPI.Code.AuthV4InvalidSession:
        // This error may occur due to a temporary issue. If the problem persists, please contact HIVE with the error message received.
        break;
        case ResultAPI.Code.AuthV4ServerResponseError:
        // Please contact HIVE with the message received.
        break;
        case ResultAPI.Code.AuthV4InvalidResponseData:
        // Please contact HIVE with the message received.
        break;
        case ResultAPI.Code.AuthV4NotRegisteredDevice:
        // This is the case where login has been disconnected due to device authentication failure. Try to log in again automatically or log out.
        break;
        case ResultAPI.Code.AuthV4ServiceShutdown:
        // Cannot log in due to service shutdown.
        break;
    }
}
void checkAuthenticationState(ResultAPI const & result) {
    switch(result.code) {
            /***** AuthV4 HIVE user authentication status code *****/
        case ResultAPI::Code::AuthV4InvalidServerResponse:
            // Contact HIVE with the received message.
            break;
        case ResultAPI::Code::AuthV4ConflictPlayer:
            // Run the account conflict handling logic.
            break;
        case ResultAPI::Code::AuthV4UserInBlacklist:
            // Prevent gameplay with this account.
            break;
        case ResultAPI::Code::AuthV4InvalidSession:
            // This error may be temporary. If the issue persists, contact HIVE with the received error message.
            break;
        case ResultAPI::Code::AuthV4ServerResponseError:
            // Contact HIVE with the received message.
            break;
        case ResultAPI::Code::AuthV4InvalidResponseData:
            // Contact HIVE with the received message.
            break;
        case ResultAPI::Code::AuthV4NotRegisteredDevice:
            // This occurs when device authentication fails and the user is signed out. Try signing in again with AUTO or sign out.
            break;
        case ResultAPI::Code::AuthV4ServiceShutdown:
            // Login is unavailable because the service has been shut down.
            break;
    }
}
void checkAuthenticationState(ResultAPI result) {
    switch(result.code) {
        /***** AuthV4 HIVE user authentication status code *****/
        case AuthV4InvalidServerResponse:
            // Contact HIVE with the received message.
            break;
        case AuthV4ConflictPlayer:
            // Run the account conflict handling logic.
            break;
        case AuthV4UserInBlacklist:
            // Prevent gameplay with this account.
            break;
        case AuthV4InvalidSession:
            // This error may be temporary. If the issue persists, contact HIVE with the received error message.
            break;
        case AuthV4ServerResponseError:
            // Contact HIVE with the received message.
            break;
        case AuthV4InvalidResponseData:
            // Contact HIVE with the received message.
            break;
        case AuthV4NotRegisteredDevice:
            // This occurs when device authentication fails and the user is signed out. Try signing in again with AUTO or sign out.
            break;
        case AuthV4ServiceShutdown:
            // Login is unavailable because the service has been shut down.
            break;
    }
}
-(void)checkAuthenticationState:(HIVEResultAPI *)result
{
    switch (result.code) {
            /***** AuthV4 HIVE user authentication status code *****/
        case kAuthV4InvalidServerResponse:
            // Contact HIVE with the received message.
            break;
        case kAuthV4ConflictPlayer:
            // Run the account conflict handling logic.
            break;
        case kAuthV4UserInBlacklist:
            // Prevent gameplay with this account.
            break;
        case kAuthV4InvalidSession:
            // This error may be temporary. If the issue persists, contact HIVE with the received error message.
            break;
        case kAuthV4ServerResponseError:
            // Contact HIVE with the received message.
            break;
        case kAuthV4InvalidResponseData:
            // Contact HIVE with the received message.
            break;
        case kAuthV4NotRegisteredDevice:
            // This occurs when device authentication fails and the user is signed out. Try signing in again with AUTO or sign out.
            break;
        case kAuthV4ServiceShutdown:
        // Login is unavailable because the service has been shut down.
            break;
    }
}
Code Message How to solve
(Required implementation) AuthV4InvalidServerResponse Data that does not comply with the HIVE server communication protocol was delivered. Contact HIVE with the received message.
(Required implementation) AuthV4ConflictPlayer Authenticated with another player. Run the account conflict handling logic. Learn about account conflict logic
(Required implementation) AuthV4UserInBlacklist This user is restricted. Prevent gameplay with this account.
(Required implementation) AuthV4InvalidSession The token and session are invalid. This error may be temporary. If the issue persists, contact HIVE with the received error message.
(Required implementation) AuthV4ServerResponseError The HIVE server communication response value is invalid. Contact HIVE with the received message.
(Required implementation) AuthV4InvalidResponseData Data that does not comply with the HIVE server communication protocol was delivered. Contact HIVE with the received message.
AuthV4AlreadyAuthorized Already linked. Two or more of the same Provider cannot be linked. Notify the user that an unsupported action was attempted.
AuthV4NotRegisteredDevice This is an unauthenticated device. During an account conflict, device authentication failed while switching to the selected account and the user was signed out. Try signing in again with AUTO or sign out.
AuthV4ServiceShutdown Login is unavailable because the service has been shut down. The game service status has been set to "Ended" in the Hive console. Notify game users that the game service has been shut down.

AuthV4.setup

AuthV4.setup ((ResultAPI result, Boolean isAutoSignIn, String did, List providerTypeList) =>; {
    switch(result.code) {
        case ResultAPI.Code.AuthV4InvalidParamDid:
        // Check whether the configured App ID and HIVE settings are valid.
        // If the issue persists, contact HIVE with the received error message.
        break;
        case ResultAPI.Code.AuthV4NetworkError:
        // Check the device's network connection status.
        // If this error occurs even when the device network connection is normal, contact HIVE with the error message.
        break;
        ...
    }
    // For common AuthV4 HIVE user authentication status codes, check the function below.
    checkAuthenticationState(result);
});
AuthV4::setup([](ResultAPI const & result, bool isAutoSignIn,std::string did,std::vector const & providerTypeList){
    LogHead("setup",result);
    switch(result.code) {
        case ResultAPI::Code::AuthV4InvalidParamDid:
            // Check whether the configured App ID and HIVE settings are valid.
            // If the issue persists, contact HIVE with the received error message.
            break;
        case ResultAPI::Code::AuthV4NetworkError:
            // Check the device's network connection status.
            // If this error occurs even when the device network connection is normal, contact HIVE with the error message.
            break;
                        ...
    }
    // For common AuthV4 HIVE user authentication status codes, check the function below.
    checkAuthenticationState(result);
});
AuthV4.setup(new AuthV4.AuthV4SetupListener() {
    @Override
    public void onAuthV4Setup(ResultAPI result, boolean isAutoSignIn, String did, ArrayList providerTypeList) {
        switch(result.code) {
            case AuthV4InvalidParamDid:
                // Check whether the configured App ID and HIVE settings are valid.
                // If the issue persists, contact HIVE with the received error message.
                break;
            case AuthV4NetworkError:
                // Check the device's network connection status.
                // If this error occurs even when the device network connection is normal, contact HIVE with the error message.
                break;
            ...
        }
        // For common AuthV4 HIVE user authentication status codes, check the function below.
        checkAuthenticationState(result);
    }
});
[HIVEAuthV4 setup:^(HIVEResultAPI *result, BOOL isAutoSignIn, NSString *did, NSArray *providerTypeList) {
    switch (result.code) {
        case kAuthV4InvalidParamDid:
            // Please check if the configured App ID and HIVE settings are correct.
            // If this issue persists, please contact HIVE with the error message received.
            break;
        case kAuthV4NetworkError:
            // Please check the network connection status of the device.
            // If this error occurs despite the device's network connection being normal, please contact HIVE with the error message.
            break;
            //...
    }
    // Please check the common AuthV4 HIVE user authentication status codes in the function below.
    [self checkAuthenticationState:result];
}];
Code Message How to solve
(Required Implementation) AuthV4InvalidParamDid Failed to receive device information from the HIVE server. Please check if the configured App ID and HIVE settings are correct. If the problem persists, please contact HIVE with the error message received.
(Required Implementation) AuthV4NetworkError Failed to communicate with the HIVE server. Please check the network connection status of the device. If this error occurs despite the network connection being normal, please contact HIVE with the error message.
(Required Implementation) AuthV4InvalidResponseData Data that does not comply with the HIVE server communication protocol has been received. Please contact HIVE with the message received.
AuthV4OnRunningV1 HIVE SDK Auth V1 authentication is already in progress. HIVE SDK Auth V1 authentication and AuthV4 authentication cannot be used simultaneously.
AuthV4InProgress HIVE SDK initialization is already in progress. If the AuthV4.setup API is already in progress, duplicate API calls are not possible.
AuthV4InvalidConfigurationXml The HIVE configuration file does not exist or the file format is incorrect. Please check if the hive_config.xml file exists in the project.
AuthV4 HIVE user authentication status code Please check the AuthV4 HIVE user authentication status code table. An error common to the AuthV4 API has been received. For detailed reasons, please check the AuthV4 HIVE user authentication status code table.

AuthV4.signIn

AuthV4.ProviderType providerType = AuthV4.ProviderType.HIVE;


AuthV4.signIn (providerType, (ResultAPI result, AuthV4.PlayerInfo playerInfo) =>; {
    switch(result.code) {
        case ResultAPI.Code.AuthV4NetworkError:
        // Please check the network connection status of the device.
        // If this error occurs despite the device's network connection being normal, please contact HIVE with the error message.
        break;
        case ResultAPI.Code.AuthV4ResponseFailProviderUserID:
        // This issue may occur due to a temporary phenomenon.
        // If this error continues to occur, please contact HIVE with the error message.
        break;
        /***** ProviderType = HIVE *****/
        case ResultAPI.Code.AuthV4HIVECancel:
        // Please expose a login window where the user can retry HIVE login or log in through another provider.
        break;
        case ResultAPI.Code.AuthV4HIVEInvalidParam:
        // Please contact HIVE with the received error message.
        break;
        case ResultAPI.Code.AuthV4HIVEResponseError:
        // This may occur if there is a problem with the network connection, so please check the network connection status of the device.
        // If this error occurs despite the device's network connection being normal, please contact HIVE with the error message.
        break;
        /***** ProviderType = Facebook *****/
        case ResultAPI.Code.AuthV4FacebookResponseError:
        // Please check if the Facebook framework and settings are correctly applied.
        break;
        case ResultAPI.Code.AuthV4FacebookCancel:
        // Please expose a login window where the user can retry Facebook login or log in through another provider.
        break;
        case ResultAPI.Code.AuthV4FacebookInvalidResponseData:
        // Please contact HIVE with the received error message.
        break;
        /***** ProviderType = Game Center *****/
        case ResultAPI.Code.AuthV4AppleCancel:
        // Please expose a login window where the user can log in through another provider.
        // Call the AuthV4.helper.showGameCenterLoginCancelDialog API to display the Game Center cancellation notice.
        break;
        case ResultAPI.Code.AuthV4AppleLoginCancel:
        // Call the AuthV4.helper.showGameCenterLoginCancelDialog API to display the Game Center cancellation notice.
        break;
        case ResultAPI.Code.AuthV4AppleResponseError:
        // Please check the GameCenter error value in the received error message.
        break;
        case ResultAPI.Code.AuthV4AppleResponseFailLogin:
        // This occurs due to unstable network conditions or discrepancies with the registered GameCenter information.
        // If errors continue to occur despite the above information being normal, please contact HIVE with the received error message.
        break;
        /***** ProviderType = Google *****/
        case ResultAPI.Code.AuthV4GoogleResponseFailLogin:
        // Please guide the user to retry Google login.
        // If this continues to occur, please contact HIVE with the received error message.
        break;
        case ResultAPI.Code.AuthV4ProviderLoginCancel:
        // Please expose a login window where the user can retry Google login or log in through another provider.
        break;
        /***** ProviderType = QQ *****/
        case ResultAPI.Code.AuthV4QQResponseFailLogin:
        // This may occur if there is a problem with the network connection, so please check the network connection status of the device.
        // If this error occurs despite the device's network connection being normal, please contact HIVE with the error message.
        break;
        case ResultAPI.Code.AuthV4QQResponseError:
        // Please guide the user to retry QQ login.
        // If this continues to occur, please contact HIVE with the received error message.
        break;
        case ResultAPI.Code.AuthV4QQCancel:
        // Please expose a login window where the user can retry QQ login or log in through another provider.
        break;
        case ResultAPI.Code.AuthV4QQNetworkError:
        // Please check the network connection status of the device.
        // If this error occurs despite the device's network connection being normal, please contact HIVE with the error message.
        break;
        case ResultAPI.Code.AuthV4QQInvalidResponseData:
        // Please guide the user to retry QQ login.
        // If this continues to occur, please contact HIVE with the received error message.
        break;
        /***** ProviderType = WeChat *****/
        case ResultAPI.Code.AuthV4WechatInvalidResponseData:
        // This issue may occur due to a temporary phenomenon.
        // If this error continues to occur, please contact HIVE with the error message.
        break;
        case ResultAPI.Code.AuthV4WechatResponseError:
        // Please guide the user to retry WeChat login.
        // If this continues to occur, please contact HIVE with the received error message.
        break;
        case ResultAPI.Code.AuthV4WechatResponseFailLogin:
        // This issue may occur due to a temporary phenomenon.
        // If this error continues to occur, please contact HIVE with the error message.
        break;
        case ResultAPI.Code.AuthV4WechatNetworkError:
        // Please check the network connection status of the device.
        // If this error occurs despite the device's network connection being normal, please contact HIVE with the error message.
        break;
        case ResultAPI.Code.AuthV4WechatNotSupportedRequest:
        // Please guide the user to upgrade or install the WeChat App version.
        break;
        /***** ProviderType = VK *****/
        case ResultAPI.Code.AuthV4VKResponseError:
        // Please guide the user to retry VK login.
        // If this continues to occur, please contact HIVE with the received error message.
        break;
        case ResultAPI.Code.AuthV4VKCancel:
        // Please expose a login window where the user can retry VK login or log in through another provider.
        break;
        case ResultAPI.Code.AuthV4VKTokenResponseError:
        // This occurs due to unstable network conditions or discrepancies with the registered VK information.
        // If errors persist even though the above information is correct, contact HIVE with the received error message..
        break;
        /***** When ProviderType = Apple *****/
        case ResultAPI.Code.AuthV4SignInAppleCanceled:
        // Display a login window that allows the user to retry Apple login or log in through another Provider.
        break;
        case ResultAPI.Code.AuthV4SignInAppleUnknown:
        // Display a login window that allows the user to retry Apple login or log in through another Provider.
        break;
        case ResultAPI.Code.AuthV4SignInAppleFailed:
        // This issue may be temporary.
        // If the error continues to occur, contact HIVE with the error message.
        break;
        case ResultAPI.Code.AuthV4SignInAppleInvalidResponse:
        // This issue may be temporary.
        // If the error continues to occur, contact HIVE with the error message.
        break;
        case ResultAPI.Code.AuthV4SignInAppleNotHandled:
        // This issue may be temporary.
        // If the error continues to occur, contact HIVE with the error message.
        break;
        ...
    }
    // For common AuthV4 HIVE user authentication status codes, check the function below.
    checkAuthenticationState(result);
});
ProviderType type = ProviderType::HIVE;
AuthV4::signIn(type, [](ResultAPI const & result,PlayerInfo const & playerInfo){
    switch(result.code) {
        case ResultAPI::Code::AuthV4NetworkError:
            // Check the device's network connection status.
            // If this error occurs even when the device network connection is normal, contact HIVE with the error message.
            break;
        case ResultAPI::Code::AuthV4ResponseFailProviderUserID:
            // This issue may be temporary.
            // If the error continues to occur, contact HIVE with the error message.
            break;
            /***** When ProviderType = HIVE *****/
        case ResultAPI::Code::AuthV4HIVECancel:
            // Display a login window that allows the user to retry HIVE login or log in through another Provider.
            break;
        case ResultAPI::Code::AuthV4HIVEInvalidParam:
            // Contact HIVE with the received error message
            break;
        case ResultAPI::Code::AuthV4HIVEResponseError:
            // This may also occur when there is a network connection issue, so check the device's network connection status.
            // If this error occurs even when the device network connection is normal, contact HIVE with the error message.
            break;
            /***** When ProviderType = Facebook *****/
        case ResultAPI::Code::AuthV4FacebookResponseError:
            // Facebook Check whether the framework and settings have been applied correctly.
            break;
        case ResultAPI::Code::AuthV4FacebookCancel:
            // Display a login window that allows the user to retry Facebook login or log in through another Provider.
            break;
        case ResultAPI::Code::AuthV4FacebookInvalidResponseData:
            // Contact HIVE with the received error message
            break;
            /***** When ProviderType = Game Center *****/
        case ResultAPI::Code::AuthV4AppleCancel:
            // Display a login window that allows the user to log in through another provider.
            // Call the AuthV4.helper.showGameCenterLoginCancelDialog API to show the Game Center cancellation message.
            break;
        case ResultAPI::Code::AuthV4AppleLoginCancel:
            // Call the AuthV4.helper.showGameCenterLoginCancelDialog API to show the Game Center cancellation message.
            break;
        case ResultAPI::Code::AuthV4AppleResponseError:
            // Check the GameCenter error value in the received error message.
            break;
        case ResultAPI::Code::AuthV4AppleResponseFailLogin:
            // This occurs because the network is unstable or the GameCenter information does not match the registered information.
            // If errors persist even though the above information is correct, contact HIVE with the received error message.
            break;
            /***** When ProviderType = Google *****/
        case ResultAPI::Code::AuthV4GoogleResponseFailLogin:
            // Guide the user to retry Google login.
            // If the issue continues to occur, contact HIVE with the received error message.
            break;
        case ResultAPI::Code::AuthV4ProviderLoginCancel:
            // Display a login window that allows the user to retry Google login or log in through another Provider.
            break;
            /***** When ProviderType = QQ *****/
        case ResultAPI::Code::AuthV4QQResponseFailLogin:
            // This may also occur when there is a network connection issue, so check the device's network connection status.
            // If this error occurs even when the device network connection is normal, contact HIVE with the error message.
            break;
        case ResultAPI::Code::AuthV4QQResponseError:
            // QQGuide the user to retry login.
            // If the issue continues to occur, contact HIVE with the received error message.
            break;
        case ResultAPI::Code::AuthV4QQCancel:
            // Display a login window that allows the user to retry QQ login or log in through another Provider.
            break;
        case ResultAPI::Code::AuthV4QQNetworkError:
            // Check the device's network connection status.
            // If this error occurs even when the device network connection is normal, contact HIVE with the error message.
            break;
        case ResultAPI::Code::AuthV4QQInvalidResponseData:
            // QQGuide the user to retry login.
            // If the issue continues to occur, contact HIVE with the received error message.
            break;
            /***** When ProviderType = WeChat *****/
        case ResultAPI::Code::AuthV4WechatInvalidResponseData:
            // This issue may be temporary.
            // If the error continues to occur, contact HIVE with the error message.
            break;
        case ResultAPI::Code::AuthV4WechatResponseError:
            // WeChat Guide the user to retry login.
            // If the issue continues to occur, contact HIVE with the received error message.
            break;
        case ResultAPI::Code::AuthV4WechatResponseFailLogin:
            // This issue may be temporary.
            // If the error continues to occur, contact HIVE with the error message.
            break;
        case ResultAPI::Code::AuthV4WechatNetworkError:
            // Check the device's network connection status.
            // If this error occurs even when the device network connection is normal, contact HIVE with the error message.
            break;
        case ResultAPI::Code::AuthV4WechatNotSupportedRequest:
            // Guide the user to upgrade or install the WeChat app.
            break;
            /***** When ProviderType = VK *****/
        case ResultAPI::Code::AuthV4VKResponseError:
            // Please guide the user to retry VK login.
            // If this continues to occur, please contact HIVE with the received error message.
            break;
        case ResultAPI::Code::AuthV4VKCancel:
            // Please expose a login window where the user can retry VK login or log in through another provider.
            break;
        case ResultAPI::Code::AuthV4VKTokenResponseError:
            // This occurs due to unstable network conditions or discrepancies with the registered VK information.
            // If errors continue to occur despite the above information being correct, please contact HIVE with the received error message.
            break;
            /***** If ProviderType = Apple *****/
        case ResultAPI::Code::AuthV4SignInAppleCanceled:
            // Please expose a login window where the user can retry Apple login or log in through another provider.
            break;
        case ResultAPI::Code::AuthV4SignInAppleUnknown:
            // Please expose a login window where the user can retry Apple login or log in through another provider.
            break;
        case ResultAPI::Code::AuthV4SignInAppleFailed:
            // This issue may occur due to a temporary phenomenon.
            // If this error continues to occur, please contact HIVE with the error message.
            break;
        case ResultAPI::Code::AuthV4SignInAppleInvalidResponse:
            // This issue may occur due to a temporary phenomenon.
            // If this error continues to occur, please contact HIVE with the error message.
            break;
        case ResultAPI::Code::AuthV4SignInAppleNotHandled:
            // This issue may occur due to a temporary phenomenon.
            // If this error continues to occur, please contact HIVE with the error message.
            break;
            ...
    }
    // Please check the common AuthV4 HIVE user authentication status codes in the function below.
    checkAuthenticationState(result);
});
AuthV4.ProviderType providerType = AuthV4.ProviderType.HIVE;

AuthV4.signIn(providerType, new AuthV4.AuthV4SignInListener() {
    @Override
    public void onAuthV4SignIn(ResultAPI result, AuthV4.PlayerInfo playerInfo) {
        switch(result.code) {
            case AuthV4NetworkError:
                // Please check the network connection status of the device.
                // If this error occurs despite the device's network connection status being normal, please contact HIVE with the error message.
                break;
            case AuthV4ResponseFailProviderUserID:
                // This issue may occur due to a temporary phenomenon.
                // If this error persists, please contact HIVE with the error message.
                break;
            /***** If ProviderType = HIVE *****/
            case AuthV4HIVECancel:
                // Please expose a login window where the user can retry HIVE login or log in through another provider.
                break;
            case AuthV4HIVEInvalidParam:
                // Please contact HIVE with the received error message.
                break;
            case AuthV4HIVEResponseError:
                // This may occur if there is a problem with the network connection, so please check the network connection status of the device.
                // If this error occurs despite the device's network connection status being normal, please contact HIVE with the error message.
                break;
            /***** If ProviderType = Facebook *****/
            case AuthV4FacebookResponseError:
                // Please check if the Facebook framework and settings are applied correctly.
                break;
            case AuthV4FacebookCancel:
                // Please expose a login window where the user can retry Facebook login or log in through another provider.
                break;
            case AuthV4FacebookInvalidResponseData:
                // Please contact HIVE with the received error message.
                break;
            /***** If ProviderType = Google *****/
            case AuthV4GoogleResponseFailLogin:
                // Please guide the user to retry Google login.
                // If this persists, please contact HIVE with the received error message.
                break;
            case AuthV4ProviderLoginCancel:
                // Please expose a login window where the user can retry Google login or log in through another provider.
                break;
            /***** If ProviderType = QQ *****/
            case AuthV4QQResponseFailLogin:
                // This may occur if there is a problem with the network connection, so please check the network connection status of the device.
                // If this error occurs despite the device's network connection status being normal, please contact HIVE with the error message.
                break;
            case AuthV4QQResponseError:
                // Please guide the user to retry QQ login.
                // If this persists, please contact HIVE with the received error message.
                break;
            case AuthV4QQCancel:
                // Please expose a login window where the user can retry QQ login or log in through another provider.
                break;
            case AuthV4QQNetworkError:
                // Please check the network connection status of the device.
                // If this error occurs despite the device's network connection status being normal, please contact HIVE with the error message.
                break;
            case AuthV4QQInvalidResponseData:
                // Please guide the user to retry QQ login.
                // If this persists, please contact HIVE with the received error message.
                break;
            /***** If ProviderType = WeChat *****/
            case AuthV4WechatInvalidResponseData:
                // This issue may occur due to a temporary phenomenon.
                // If this error persists, please contact HIVE with the error message.
                break;
            case AuthV4WechatResponseError:
                // Please guide the user to retry WeChat login.
                // If this persists, please contact HIVE with the received error message.
                break;
            case AuthV4WechatResponseFailLogin:
                // This issue may occur due to a temporary phenomenon.
                // If this error persists, please contact HIVE with the error message.
                break;
            case RAuthV4WechatNetworkError:
                // Please check the network connection status of the device.
                // If this error occurs despite the device's network connection status being normal, please contact HIVE with the error message.
                break;
            case AuthV4WechatNotSupportedRequest:
                // Please guide the user to upgrade or install the WeChat App version.
                break;
            /***** If ProviderType = VK *****/
            case AuthV4VKResponseError:
                // Please guide the user to retry VK login.
                // If this persists, please contact HIVE with the received error message.
                break;
            case AuthV4VKCancel:
                // Please expose a login window where the user can retry VK login or log in through another provider.
                break;
            case AuthV4VKTokenResponseError:
                // This occurs due to unstable network conditions or discrepancies with VK information.
                // If the above information is correct and this error persists, please contact HIVE with the received error message.
                break;
            /***** If ProviderType = Apple *****/
            case AuthV4SignInAppleCanceled:
                // Please expose a login window where the user can retry Apple login or log in through another provider.
                break;
            case AuthV4SignInAppleUnknown:
                // Please expose a login window where the user can retry Apple login or log in through another provider.
                break;
            case AuthV4SignInAppleFailed:
                // This issue may occur due to a temporary phenomenon.
                // If this error persists, please contact HIVE with the error message.
                break;
            case AuthV4SignInAppleInvalidResponse:
                // This issue may occur due to a temporary phenomenon.
                // If this error persists, please contact HIVE with the error message.
                break;
            case AuthV4SignInAppleNotHandled:
                // This issue may occur due to a temporary phenomenon.
                // If this error persists, please contact HIVE with the error message.
                break;
            ...
        }
        // Please check the function below for common AuthV4 HIVE user authentication status codes.
        checkAuthenticationState(result);
    }
});
HIVEProviderType providerType = kHIVEProviderTypeHIVE;


[HIVEAuthV4 signIn:providerType handler:^(HIVEResultAPI *result, HIVEPlayerInfo *playerInfo) {
    switch (result.code) {
        case kAuthV4NetworkError:
            // Please check the network connection status of the device.
            // If this error occurs despite the device's network connection being normal, please contact HIVE with the error message.
            break;
        case kAuthV4ResponseFailProviderUserID:
            // This issue may occur due to a temporary phenomenon.
            // If this error persists, please contact HIVE with the error message.
            break;
            /***** If ProviderType = HIVE *****/
        case kAuthV4HIVECancel:
            // Please display a login window where the user can retry HIVE login or log in through another provider.
            break;
        case kAuthV4HIVEInvalidParam:
            // Please contact HIVE with the received error message.
            break;
        case kAuthV4HIVEResponseError:
            // This may occur if there is a problem with the network connection, so please check the network connection status of the device.
            // If this error occurs despite the device's network connection being normal, please contact HIVE with the error message.
            break;
            /***** If ProviderType = Facebook *****/
        case kAuthV4FacebookResponseError:
            // Please check if the Facebook framework and settings are correctly applied.
            break;
        case kAuthV4FacebookCancel:
            // Please display a login window where the user can retry Facebook login or log in through another provider.
            break;
        case kAuthV4FacebookInvalidResponseData:
            // Please contact HIVE with the received error message.
            break;
            /***** If ProviderType = Game Center *****/
        case kAuthV4AppleCancel:
            // Please display a login window where the user can log in through another provider.
            // Call the AuthV4.helper.showGameCenterLoginCancelDialog API to display the Game Center cancellation notice.
            break;
        case kAuthV4AppleLoginCancel:
            // Call the AuthV4.helper.showGameCenterLoginCancelDialog API to display the Game Center cancellation notice.
            break;
        case kAuthV4AppleResponseError:
            // Please check the GameCenter error value in the received error message.
            break;
        case kAuthV4AppleResponseFailLogin:
            // This occurs due to unstable network conditions or discrepancies with the registered GameCenter information.
            // If this error persists despite the above information being normal, please contact HIVE with the received error message.
            break;
            /***** If ProviderType = Google *****/
        case kAuthV4GoogleResponseFailLogin:
            // Please guide the user to retry Google login.
            // If this persists, please contact HIVE with the received error message.
            break;
        case kAuthV4ProviderLoginCancel:
            // Please display a login window where the user can retry Google login or log in through another provider.
            break;
            /***** If ProviderType = QQ *****/
        case kAuthV4QQResponseFailLogin:
            // This may occur if there is a problem with the network connection, so please check the network connection status of the device.
            // If this error occurs despite the device's network connection being normal, please contact HIVE with the error message.
            break;
        case kAuthV4QQResponseError:
            // Please guide the user to retry QQ login.
            // If this persists, please contact HIVE with the received error message.
            break;
        case kAuthV4QQCancel:
            // Please display a login window where the user can retry QQ login or log in through another provider.
            break;
        case kAuthV4QQNetworkError:
            // Please check the network connection status of the device.
            // If this error occurs despite the device's network connection being normal, please contact HIVE with the error message.
            break;
        case kAuthV4QQInvalidResponseData:
            // Please guide the user to retry QQ login.
            // If this persists, please contact HIVE with the received error message.
            break;
            /***** If ProviderType = WeChat *****/
        case kAuthV4WechatInvalidResponseData:
            // This issue may occur due to a temporary phenomenon.
            // If this error persists, please contact HIVE with the error message.
            break;
        case kAuthV4WechatResponseError:
            // Please guide the user to retry WeChat login.
            // If this persists, please contact HIVE with the received error message.
            break;
        case kAuthV4WechatResponseFailLogin:
            // This issue may occur due to a temporary phenomenon.
            // If this error persists, please contact HIVE with the error message.
            break;
        case kAuthV4WechatNetworkError:
            // Please check the network connection status of the device.
            // If this error occurs despite the device's network connection being normal, please contact HIVE with the error message.
            break;
        case kAuthV4WechatNotSupportedRequest:
            // Please guide the user to upgrade or install the WeChat App version.
            break;
            /***** If ProviderType = VK *****/
        case kAuthV4VKResponseError:
            // Please guide the user to retry VK login.
            // If this persists, please contact HIVE with the received error message.
            break;
        case kAuthV4VKCancel:
            // Please display a login window where the user can retry VK login or log in through another provider.
            break;
        case kAuthV4VKTokenResponseError:
            // This occurs due to unstable network conditions or discrepancies with the registered VK information.
            // Even if the above information is correct, if errors continue to occur, please contact HIVE with the received error message.
            break;
            /***** If ProviderType = Apple *****/
        case kAuthV4SignInAppleCanceled:
            // Please display a login window where the user can retry Apple login or log in through another provider.
            break;
        case kAuthV4SignInAppleUnknown:
            // Please display a login window where the user can retry Apple login or log in through another provider.
            break;
        case kAuthV4SignInAppleFailed:
            // This issue may occur due to a temporary phenomenon.
            // If this error continues to occur, please contact HIVE with the error message.
            break;
        case kAuthV4SignInAppleInvalidResponse:
            // This issue may occur due to a temporary phenomenon.
            // If this error continues to occur, please contact HIVE with the error message.
            break;
        case kAuthV4SignInAppleNotHandled:
            // This issue may occur due to a temporary phenomenon.
            // If this error continues to occur, please contact HIVE with the error message.
            break;
            //...
    }
    // Please check the common AuthV4 HIVE user authentication status codes in the function below.
    [self checkAuthenticationState:result];
}];


Code Message Resolution
(Required implementation) AuthV4HIVECancel [HIVE Provider] The user canceled HIVE account linking. Display a login window that allows the user to retry HIVE login or log in through another Provider.
(Required implementation) AuthV4HIVEInvalidParam [HIVE Provider] The information required when attempting HIVE login is insufficient. Contact HIVE with the received error message.
(Required implementation) AuthV4HIVEResponseError [HIVE Provider] A problem occurred while displaying the HIVE webview. This may occur when there is a network connection issue, so check the device's network connection status. If this error occurs even when the device network connection is normal, contact HIVE with the error message.
AuthV4HIVEInProgress [HIVE Provider] The HIVE webview is already displayed. If the HIVE login or HIVE Cafe webview is already displayed, it will not be displayed again. Close the previously displayed webview and try again.

Code Message How to solve
(Required implementation) AuthV4FacebookResponseError [Facebook Provider] An error occurred during Facebook login. Facebook Check whether the framework and settings have been applied correctly.
(Required implementation) AuthV4FacebookCancel [Facebook Provider] The user canceled Facebook account linking. Display a login window that allows the user to retry Facebook login or log in through another Provider.
(Required implementation) AuthV4FacebookResponseError [Facebook Provider] Facebook User information could not be retrieved normally from Facebook after login. Contact HIVE with the received error message
(Required implementation) AuthV4FacebookInvalidResponseData [Facebook Provider] Facebook User information could not be retrieved normally from Facebook after login. Contact HIVE with the received error message

Code Message Resolution
(Required implementation) AuthV4QQResponseFailLogin [QQ Provider] After QQ login, the login session was not processed normally. This may occur when there is a network connection issue, so check the device's network connection status. If this error occurs even when the device network connection is normal, contact HIVE with the error message.
(Required implementation) AuthV4QQResponseError [QQ Provider] Login was canceled because an error occurred while attempting QQ login. Guide the user to retry QQ login. If the issue continues to occur, contact HIVE with the received error message.
(Required implementation) AuthV4QQCancel [QQ Provider] The user canceled QQ account linking. Display a login window that allows the user to retry QQ login or log in through another Provider.
(Required implementation) AuthV4QQNetworkError [QQ Provider] QQ login failed because a network communication issue occurred while attempting QQ login. Check the device's network connection status. If this error occurs even when the device network connection is normal, contact HIVE with the error message.
(Required implementation) AuthV4QQInvalidResponseData [QQ Provider] An error occurred while attempting QQ login, so login cannot proceed. Guide the user to retry QQ login. If the issue continues to occur, contact HIVE with the received error message.
AuthV4QQInProgress [QQ Provider] Login with the QQ Provider is already in progress. Call it after the previous feature ends.
AuthV4QQInvalidParam [QQ Provider] QQ login is unavailable because QQ AppID is not configured in HIVE. Configure the QQ AppID in the hive_config.xml file.
AuthV4QQNotInitialized [QQ Provider] QQ login is unavailable because QQ AppID is not configured in HIVE. Configure the QQ AppID in the hive_config.xml file.

Code Message Resolution
(Required implementation) AuthV4WechatInvalidResponseData [WeChat Provider] This is delivered when the information passed after WeChat login is unclear. This issue may occur temporarily. If this error continues to occur, contact HIVE with the error message.
(Required implementation) AuthV4WechatResponseError [WeChat Provider] WeChat login failed. Guide the user to retry WeChat login. If the issue continues to occur, contact HIVE with the delivered error message.
(Required implementation) AuthV4WechatResponseFailLogin [WeChat Provider] This occurs when some of the information passed after WeChat login is missing. This issue may occur temporarily. If this error continues to occur, contact HIVE with the error message.
(Required implementation) AuthV4WechatNetworkError [WeChat Provider] WeChat login failed because a network communication issue occurred while attempting WeChat login. Check the device's network connection status. If this error occurs even when the device network connection is normal, contact HIVE with the error message.
(Required implementation) AuthV4WechatNotSupportedRequest [WeChat Provider] This occurs when the WeChat app installed on the device is earlier than the supported version or the WeChat app is not present. Guide the user to upgrade or install the WeChat app.
AuthV4WechatInProgress [WeChat Provider] Login/sign-out with the WeChat Provider is already in progress. Call it after the previous feature ends.
AuthV4WechatInvalidAppKey [WeChat Provider] WeChat login is unavailable because WeChat information is not configured in HIVE. Configure WeChat information in the hive_config.xml file.

Code Message How to solve
(Required implementation) AuthV4VKResponseError [VK Provider] Login was canceled because an error occurred while attempting VK login. VK Guide the user to retry login. If the issue continues to occur, contact HIVE with the received error message. VK Errors
(Required implementation) AuthV4VKCancel [VK Provider] The user canceled VK account linking. Display a login window that allows the user to retry VK login or log in through another Provider.
(Required implementation) AuthV4VKTokenResponseError [VK Provider] Token information could not be retrieved normally from the VK server. This occurs because the network is unstable or the VK information does not match the registered information. If errors persist even though the above information is correct, contact HIVE with the received error message.. VK Errors
AuthV4VKInProgress [VK Provider] Login/sign-out with the VK Provider is already in progress. Call it after the previous feature ends.
AuthV4VKNotInitialized [VK Provider] WeChat login is unavailable because VK information is not configured in HIVE. Configure VK information in the hive_config.xml file.
AuthV4IDPNotInitialized [VK Provider] WeChat login is unavailable because VK information is not configured in HIVE. Configure VK information in the hive_config.xml file.

Code Message Resolution
(Required implementation) AuthV4SignInAppleCanceled [Apple Provider] The user canceled Apple account linking. Added in HIVE SDK v4.11.7.3, v4.13.0+ Display a login window that allows the user to retry Apple login or log in through another Provider.
(Required implementation) AuthV4SignInAppleUnknown [Apple Provider] Apple login failed. This issue may occur when an Apple account is not linked on the running device. Added in HIVE SDK v4.11.7.3, v4.13.0+ Display a login window that allows the user to retry Apple login or log in through another Provider.
(Required implementation) AuthV4SignInAppleFailed [Apple Provider] Apple login failed. Added in HIVE SDK v4.11.7.3, v4.13.0+ This issue may occur temporarily. If this error continues to occur, contact HIVE with the error message.
(Required implementation) AuthV4SignInAppleInvalidResponse [Apple Provider] The login request information received from Apple is invalid. Added in HIVE SDK v4.11.7.3, v4.13.0+ This issue may occur temporarily. If this error continues to occur, contact HIVE with the error message.
(Required implementation) AuthV4SignInAppleNotHandled [Apple Provider] The login request information sent to Apple is invalid. Added in HIVE SDK v4.11.7.3, v4.13.0+ This issue may occur temporarily. If this error continues to occur, contact HIVE with the error message.
AuthV4AppleInProgress [Apple Provider] Login with the Apple Provider is already in progress. Added in HIVE SDK v4.11.7.3, v4.13.0+ Call it after the previous feature ends.
AuthV4SignInAppleNotSupported It was run on an OS version where Apple login cannot be performed. (Earlier than iOS 13.0) Added in HIVE SDK v4.11.7.3, v4.13.0+ Disable or remove the Apple login button on devices where Apple login cannot be performed.

Code Message How to solve
(Required implementation) AuthV4AppleCancel [Game Center Provider] The user canceled GameCenter account linking. Display a login window that allows the user to log in through another provider. Call the AuthV4.helper.showGameCenterLoginCancelDialog API to show the Game Center cancellation message.
(Required implementation) AuthV4AppleLoginCancel [Game Center Provider] The user has already canceled GameCenter login. Call the AuthV4.helper.showGameCenterLoginCancelDialog API to show the Game Center cancellation message.
(Required implementation) AuthV4AppleResponseError [Game Center Provider] An error occurred during GameCenter login. Check the GameCenter error value in the received error message. GKErrorCode
(Required implementation) AuthV4AppleResponseFailLogin [Game Center Provider] Token information could not be retrieved normally from the GameCenter server. This occurs because the network is unstable or the GameCenter information does not match the registered information. If errors persist even though the above information is correct, contact HIVE with the received error message.

Code Message How to solve
(Required implementation) AuthV4GoogleResponseFailLogin [Google Provider] Google login failed. Guide the user to retry Google login. If the issue continues to occur, contact HIVE with the received error message.
(Required implementation) AuthV4ProviderLoginCancel [Google Provider] The user canceled Google login. Display a login window that allows the user to retry Google login or log in through another Provider.

Code Message Resolution
(Required implementation) AuthV4HuaweiLoginCancel [Huawei Provider] The user canceled HIVE account linking. Display a login window that allows the user to retry Huawei login or log in through another Provider.
(Required implementation) AuthV4HuaweiResponseError [Huawei Provider] Login was canceled because an error occurred while attempting Huawei login. Guide the user to retry Huawei login. If the issue continues to occur, contact HIVE with the received error message.
(Required implementation) AuthV4HuaweiNetworkError [Huawei Provider] Huawei login failed because a network communication issue occurred while attempting Huawei login. Check the device's network connection status. If this error occurs even when the device network connection is normal, contact HIVE with the error message.
(Required implementation) AuthV4HuaweiInProgress [Huawei Provider] Login with the Huawei Provider is already in progress. Call it after the previous feature ends.
(Required implementation) AuthV4HuaweiInvalidParam [Huawei Provider] This is an invalid parameter request. Contact HIVE with the received error message.

AuthV4.sighout

AuthV4.signOut ((ResultAPI result) =>; {
    switch(result.code) {
        ...
    }
});
AuthV4::signOut([](ResultAPI const & result){
    switch(result.code) {
            ...
    }


});
AuthV4.signOut (new AuthV4.AuthV4SignOutListener() {
    @Override
    public void onAuthV4SignOut(ResultAPI result) {
        switch(result.code) {
            ...
        }
});
[HIVEAuthV4 signOut:^(HIVEResultAPI *result) {
    switch (result.code) {
            //...
    }
}];
Code Message How to solve
AuthV4NotInitialized HIVE SDK is not initialized. Please call the AuthV4.setup API to initialize the HIVE SDK. View API
AuthV4InProgress The AuthV4 feature is already in progress. If SignIn, SignOut, connect, disconnect, selectConflict, resolveConflict, showSignIn, showConflictSelection, showAdultConfirm APIs are already in progress, duplicate API calls are not possible. Please terminate the previous operation before calling again.

AuthV4.connect

AuthV4.ProviderType providerType = AuthV4.ProviderType.HIVE;
AuthV4.connect (providerType, (ResultAPI result, AuthV4.PlayerInfo conflictPlayer) =>; {

    switch(result.code) {
        case ResultAPI.Code.AuthV4NetworkError:
        // Please check the network connection status of the device.
        // If this error occurs even when the device's network connection status is normal, please contact HIVE with the error message.
        break;
        case ResultAPI.Code.AuthV4ResponseFailProviderUserID:
        // This issue may occur as a temporary phenomenon.
        // If this error persists, please contact HIVE with the error message.
        break;
        case ResultAPI.Code.AuthV4InvalidResponseData:
        // Please contact HIVE with the received message.
        break;
        /***** If ProviderType = HIVE *****/
        case ResultAPI.Code.AuthV4HIVECancel:
        // Please show a login window where the user can retry HIVE login or log in through another provider.
        break;
        case ResultAPI.Code.AuthV4HIVEInvalidParam:
        // Please contact HIVE with the received error message.
        break;
        case ResultAPI.Code.AuthV4HIVEResponseError:
        // This may occur if there is a problem with the network connection, so please check the device's network connection status.
        // If this error occurs even when the device's network connection status is normal, please contact HIVE with the error message.
        break;
        /***** If ProviderType = Facebook *****/
        case ResultAPI.Code.AuthV4FacebookResponseError:
        // Please check if the Facebook framework and settings are correctly applied.
        break;
        case ResultAPI.Code.AuthV4FacebookCancel:
        // Please show a login window where the user can retry Facebook login or log in through another provider.
        break;
        case ResultAPI.Code.AuthV4FacebookInvalidResponseData:
        // Please contact HIVE with the received error message.
        break;
        /***** If ProviderType = Game Center *****/
        case ResultAPI.Code.AuthV4AppleCancel:
        // Please show a login window where the user can log in through another provider.
        // Call the AuthV4.helper.showGameCenterLoginCancelDialog API to display the Game Center cancellation notice.
        break;
        case ResultAPI.Code.AuthV4AppleLoginCancel:
        // Call the AuthV4.helper.showGameCenterLoginCancelDialog API to display the Game Center cancellation notice.
        break;
        case ResultAPI.Code.AuthV4AppleResponseError:
        // Please check the GameCenter error value in the received error message.
        break;
        case ResultAPI.Code.AuthV4AppleResponseFailLogin:
        // This occurs due to unstable network conditions or discrepancies with the registered GameCenter information.
        // If the above information is normal but the error persists, please contact HIVE with the received error message.
        break;
        /***** If ProviderType = Google *****/
        case ResultAPI.Code.AuthV4GoogleResponseFailLogin:
        // Please guide the user to retry Google login.
        // If this persists, please contact HIVE with the received error message.
        break;
        case ResultAPI.Code.AuthV4ProviderLoginCancel:
        // Please show a login window where the user can retry Google login or log in through another provider.
        break;
        /***** If ProviderType = QQ *****/
        case ResultAPI.Code.AuthV4QQResponseFailLogin:
        // This may occur if there is a problem with the network connection, so please check the device's network connection status.
        // If this error occurs even when the device's network connection status is normal, please contact HIVE with the error message.
        break;
        case ResultAPI.Code.AuthV4QQResponseError:
        // Please guide the user to retry QQ login.
        // If this persists, please contact HIVE with the received error message.
        break;
        case ResultAPI.Code.AuthV4QQCancel:
        // Please show a login window where the user can retry QQ login or log in through another provider.
        break;
        case ResultAPI.Code.AuthV4QQNetworkError:
        // Please check the network connection status of the device.
        // If this error occurs even when the device's network connection status is normal, please contact HIVE with the error message.
        break;
        case ResultAPI.Code.AuthV4QQInvalidResponseData:
        // Please guide the user to retry QQ login.
        // If this persists, please contact HIVE with the received error message.
        break;
        /***** If ProviderType = WeChat *****/
        case ResultAPI.Code.AuthV4WechatInvalidResponseData:
        // This issue may occur as a temporary phenomenon.
        // If this error persists, please contact HIVE with the error message.
        break;
        case ResultAPI.Code.AuthV4WechatResponseError:
        // Please guide the user to retry WeChat login.
        // If this persists, please contact HIVE with the received error message.
        break;
        case ResultAPI.Code.AuthV4WechatResponseFailLogin:
        // This issue may occur as a temporary phenomenon.
        // If this error persists, please contact HIVE with the error message.
        break;
        case ResultAPI.Code.AuthV4WechatNetworkError:
        // Please check the network connection status of the device.
        // If this error occurs even when the device's network connection status is normal, please contact HIVE with the error message.
        break;
        case ResultAPI.Code.AuthV4WechatNotSupportedRequest:
        // Please guide the user to upgrade or install the WeChat App version.
        break;
        /***** If ProviderType = VK *****/
        case ResultAPI.Code.AuthV4VKResponseError:
        // Please guide the user to retry VK login.
        // If this persists, please contact HIVE with the received error message.
        break;
        case ResultAPI.Code.AuthV4VKCancel:
        // Please show a login window where the user can retry VK login or log in through another provider.
        break;
        case ResultAPI.Code.AuthV4VKTokenResponseError:
        // The network status is unstable or it occurs due to a mismatch with the registered VK information.
        // If the above information is correct but errors continue to occur, please contact HIVE with the error message received.
        break;
        /***** If ProviderType = Apple *****/
        case ResultAPI.Code.AuthV4SignInAppleCanceled:
        // Please display a login window where the user can retry Apple login or log in through another provider.
        break;
        case ResultAPI.Code.AuthV4SignInAppleUnknown:
        // Please display a login window where the user can retry Apple login or log in through another provider.
        break;
        case ResultAPI.Code.AuthV4SignInAppleFailed:
        // This issue may occur due to a temporary phenomenon.
        // If this error continues to occur, please contact HIVE with the error message.
        break;
        case ResultAPI.Code.AuthV4SignInAppleInvalidResponse:
        // This issue may occur due to a temporary phenomenon.
        // If this error continues to occur, please contact HIVE with the error message.
        break;
        case ResultAPI.Code.AuthV4SignInAppleNotHandled:
        // This issue may occur due to a temporary phenomenon.
        // If this error continues to occur, please contact HIVE with the error message.
        break;
        ...
    }
    // Please check the common AuthV4 HIVE user authentication status codes in the function below.
    checkAuthenticationState(result);

});
AuthV4.ProviderType providerType = AuthV4.ProviderType.HIVE;
AuthV4::connect(providerType,[](ResultAPI const & connectResult,PlayerInfo const & conflictPlayer){
    switch(result.code) {
        case ResultAPI::Code::AuthV4NetworkError:
            // Check the device's network connection status.
            // If this error occurs even when the device network connection is normal, contact HIVE with the error message.
            break;
        case ResultAPI::Code::AuthV4ResponseFailProviderUserID:
            // This issue may be temporary.
            // If the error continues to occur, contact HIVE with the error message.
            break;
        case ResultAPI::Code::AuthV4InvalidResponseData:
            // Contact HIVE with the received message.
            break;
            /***** When ProviderType = HIVE *****/
        case ResultAPI::Code::AuthV4HIVECancel:
            // Display a login window that allows the user to retry HIVE login or log in through another Provider.
            break;
        case ResultAPI::Code::AuthV4HIVEInvalidParam:
            // Contact HIVE with the received error message
            break;
        case ResultAPI::Code::AuthV4HIVEResponseError:
            // This may also occur when there is a network connection issue, so check the device's network connection status.
            // If this error occurs even when the device network connection is normal, contact HIVE with the error message.
            break;
            /***** When ProviderType = Facebook *****/
        case ResultAPI::Code::AuthV4FacebookResponseError:
            // Facebook Check whether the framework and settings have been applied correctly.
            break;
        case ResultAPI::Code::AuthV4FacebookCancel:
            // Display a login window that allows the user to retry Facebook login or log in through another Provider.
            break;
        case ResultAPI::Code::AuthV4FacebookInvalidResponseData:
            // Contact HIVE with the received error message
            break;
            /***** When ProviderType = Game Center *****/
        case ResultAPI::Code::AuthV4AppleCancel:
            // Display a login window that allows the user to log in through another provider.
            // Call the AuthV4.helper.showGameCenterLoginCancelDialog API to show the Game Center cancellation message.
            break;
        case ResultAPI::Code::AuthV4AppleLoginCancel:
            // Call the AuthV4.helper.showGameCenterLoginCancelDialog API to show the Game Center cancellation message.
            break;
        case ResultAPI::Code::AuthV4AppleResponseError:
            // Check the GameCenter error value in the received error message.
            break;
        case ResultAPI::Code::AuthV4AppleResponseFailLogin:
            // This occurs because the network is unstable or the GameCenter information does not match the registered information.
            // If errors persist even though the above information is correct, contact HIVE with the received error message.
            break;
            /***** When ProviderType = Google *****/
        case ResultAPI::Code::AuthV4GoogleResponseFailLogin:
            // Guide the user to retry Google login.
            // If the issue continues to occur, contact HIVE with the received error message.
            break;
        case ResultAPI::Code::AuthV4ProviderLoginCancel:
            // Display a login window that allows the user to retry Google login or log in through another Provider.
            break;
            /***** When ProviderType = QQ *****/
        case ResultAPI::Code::AuthV4QQResponseFailLogin:
            // This may also occur when there is a network connection issue, so check the device's network connection status.
            // If this error occurs even when the device network connection is normal, contact HIVE with the error message.
            break;
        case ResultAPI::Code::AuthV4QQResponseError:
            // QQGuide the user to retry login.
            // If the issue continues to occur, contact HIVE with the received error message.
            break;
        case ResultAPI::Code::AuthV4QQCancel:
            // Display a login window that allows the user to retry QQ login or log in through another Provider.
            break;
        case ResultAPI::Code::AuthV4QQNetworkError:
            // Check the device's network connection status.
            // If this error occurs even when the device network connection is normal, contact HIVE with the error message.
            break;
        case ResultAPI::Code::AuthV4QQInvalidResponseData:
            // QQGuide the user to retry login.
            // If the issue continues to occur, contact HIVE with the received error message.
            break;
            /***** When ProviderType = WeChat *****/
        case ResultAPI::Code::AuthV4WechatInvalidResponseData:
            // This issue may be temporary.
            // If the error continues to occur, contact HIVE with the error message.
            break;
        case ResultAPI::Code::AuthV4WechatResponseError:
            // WeChat Guide the user to retry login.
            // If the issue continues to occur, contact HIVE with the received error message.
            break;
        case ResultAPI::Code::AuthV4WechatResponseFailLogin:
            // This issue may be temporary.
            // If the error continues to occur, contact HIVE with the error message.
            break;
        case ResultAPI::Code::AuthV4WechatNetworkError:
            // Check the device's network connection status.
            // If this error occurs even when the device network connection is normal, contact HIVE with the error message.
            break;
        case ResultAPI::Code::AuthV4WechatNotSupportedRequest:
            // Guide the user to upgrade or install the WeChat app.
            break;
            /***** When ProviderType = VK *****/
        case ResultAPI::Code::AuthV4VKResponseError:
            // VK Guide the user to retry login.
            // If the issue continues to occur, contact HIVE with the received error message.
            break;
        case ResultAPI::Code::AuthV4VKCancel:
            // Display a login window that allows the user to retry VK login or log in through another Provider.
            break;
        case ResultAPI::Code::AuthV4VKTokenResponseError:
            // This occurs because the network is unstable or the VK information does not match the registered information.
            // If errors persist even though the above information is correct, contact HIVE with the received error message..
            break;
            /***** When ProviderType = Apple *****/
        case ResultAPI::Code::AuthV4SignInAppleCanceled:
            // Display a login window that allows the user to retry Apple login or log in through another Provider.
            break;
        case ResultAPI::Code::AuthV4SignInAppleUnknown:
            // Display a login window that allows the user to retry Apple login or log in through another Provider.
            break;
        case ResultAPI::Code::AuthV4SignInAppleFailed:
            // This issue may be temporary.
            // If the error continues to occur, contact HIVE with the error message.
            break;
        case ResultAPI::Code::AuthV4SignInAppleInvalidResponse:
            // This issue may be temporary.
            // If the error continues to occur, contact HIVE with the error message.
            break;
        case ResultAPI::Code::AuthV4SignInAppleNotHandled:
            // This issue may be temporary.
            // If the error continues to occur, contact HIVE with the error message.
            break;
            ...
    }
    // For common AuthV4 HIVE user authentication status codes, check the function below.
    checkAuthenticationState(result);
});
AuthV4.ProviderType providerType = AuthV4.ProviderType.HIVE;
AuthV4.connect(providerType, new AuthV4.AuthV4ConnectListener() {
    @Override
    public void onAuthV4Connect(ResultAPI result, AuthV4.PlayerInfo conflictPlayer) {
        switch(result.code) {
            case AuthV4NetworkError:
                // Check the device's network connection status.
                // If this error occurs even when the device network connection is normal, contact HIVE with the error message.
                break;
            case AuthV4ResponseFailProviderUserID:
                // This issue may be temporary.
                // If the error continues to occur, contact HIVE with the error message.
                break;
            case AuthV4InvalidResponseData:
                // Contact HIVE with the received message.
                break;
            /***** When ProviderType = HIVE *****/
            case AuthV4HIVECancel:
                // Display a login window that allows the user to retry HIVE login or log in through another Provider.
                break;
            case AuthV4HIVEInvalidParam:
                // Contact HIVE with the received error message
                break;
            case AuthV4HIVEResponseError:
                // This may also occur when there is a network connection issue, so check the device's network connection status.
                // If this error occurs even when the device network connection is normal, contact HIVE with the error message.
                break;
            /***** When ProviderType = Facebook *****/
            case AuthV4FacebookResponseError:
                // Facebook Check whether the framework and settings have been applied correctly.
                break;
            case AuthV4FacebookCancel:
                // Display a login window that allows the user to retry Facebook login or log in through another Provider.
                break;
            case AuthV4FacebookInvalidResponseData:
                // Contact HIVE with the received error message
                break;
            /***** When ProviderType = Google *****/
            case AuthV4GoogleResponseFailLogin:
                // Guide the user to retry Google login.
                // If the issue continues to occur, contact HIVE with the received error message.
                break;
            case AuthV4ProviderLoginCancel:
                // Display a login window that allows the user to retry Google login or log in through another Provider.
                break;
            /***** When ProviderType = QQ *****/
            case AuthV4QQResponseFailLogin:
                // This may also occur when there is a network connection issue, so check the device's network connection status.
                // If this error occurs even when the device network connection is normal, contact HIVE with the error message.
                break;
            case AuthV4QQResponseError:
                // QQGuide the user to retry login.
                // If the issue continues to occur, contact HIVE with the received error message.
                break;
            case AuthV4QQCancel:
                // Display a login window that allows the user to retry QQ login or log in through another Provider.
                break;
            case AuthV4QQNetworkError:
                // Check the device's network connection status.
                // If this error occurs even when the device network connection is normal, contact HIVE with the error message.
                break;
            case AuthV4QQInvalidResponseData:
                // QQGuide the user to retry login.
                // If the issue continues to occur, contact HIVE with the received error message.
                break;
            /***** When ProviderType = WeChat *****/
            case AuthV4WechatInvalidResponseData:
                // This issue may be temporary.
                // If the error continues to occur, contact HIVE with the error message.
                break;
            case AuthV4WechatResponseError:
                // WeChat Guide the user to retry login.
                // If the issue continues to occur, contact HIVE with the received error message.
                break;
            case AuthV4WechatResponseFailLogin:
                // This issue may be temporary.
                // If the error continues to occur, contact HIVE with the error message.
                break;
            case AuthV4WechatNetworkError:
                // Check the device's network connection status.
                // If this error occurs even when the device network connection is normal, contact HIVE with the error message.
                break;
            case AuthV4WechatNotSupportedRequest:
                // Guide the user to upgrade or install the WeChat app.
                break;
            /***** When ProviderType = VK *****/
            case AuthV4VKResponseError:
                // VK Guide the user to retry login.
                // If the issue continues to occur, contact HIVE with the received error message.
                break;
            case AuthV4VKCancel:
                // Display a login window that allows the user to retry VK login or log in through another Provider.
                break;
            case AuthV4VKTokenResponseError:
                // This occurs because the network is unstable or the VK information does not match the registered information.
                // If errors persist even though the above information is correct, contact HIVE with the received error message..
                break;
            /***** When ProviderType = Apple *****/
            case AuthV4SignInAppleCanceled:
                // Display a login window that allows the user to retry Apple login or log in through another Provider.
                break;
            case AuthV4SignInAppleUnknown:
                // Please show a login window where the user can retry Apple login or log in through another provider.
                break;
            case AuthV4SignInAppleFailed:
                // This issue may occur due to a temporary phenomenon.
                // If this error persists, please contact HIVE with the error message.
                break;
            case AuthV4SignInAppleInvalidResponse:
                // This issue may occur due to a temporary phenomenon.
                // If this error persists, please contact HIVE with the error message.
                break;
            case AuthV4SignInAppleNotHandled:
                // This issue may occur due to a temporary phenomenon.
                // If this error persists, please contact HIVE with the error message.
                break;
            ...
        }
        // Please check the function below for common AuthV4 HIVE user authentication status codes.
        checkAuthenticationState(result);
    }
});
HIVEProviderType providerType = kHIVEProviderTypeHIVE;

[HIVEAuthV4 connect:providerType handler:^(HIVEResultAPI *result, HIVEPlayerInfo *conflictPlayer) {
    switch (result.code) {
        case kAuthV4NetworkError:
            // Check the device's network connection status.
            // If this error occurs even when the device network connection is normal, contact HIVE with the error message.
            break;
        case kAuthV4ResponseFailProviderUserID:
            // This issue may be temporary.
            // If the error continues to occur, contact HIVE with the error message.
            break;
        case kAuthV4InvalidResponseData:
            // Contact HIVE with the received message.
            break;
            /***** When ProviderType = HIVE *****/
        case kAuthV4HIVECancel:
            // Display a login window that allows the user to retry HIVE login or log in through another Provider.
            break;
        case kAuthV4HIVEInvalidParam:
            // Contact HIVE with the received error message
            break;
        case kAuthV4HIVEResponseError:
            // This may also occur when there is a network connection issue, so check the device's network connection status.
            // If this error occurs even when the device network connection is normal, contact HIVE with the error message.
            break;
            /***** When ProviderType = Facebook *****/
        case kAuthV4FacebookResponseError:
            // Facebook Check whether the framework and settings have been applied correctly.
            break;
        case kAuthV4FacebookCancel:
            // Display a login window that allows the user to retry Facebook login or log in through another Provider.
            break;
        case kAuthV4FacebookInvalidResponseData:
            // Contact HIVE with the received error message
            break;
            /***** When ProviderType = Game Center *****/
        case kAuthV4AppleCancel:
            // Display a login window that allows the user to log in through another provider.
            // Call the AuthV4.helper.showGameCenterLoginCancelDialog API to show the Game Center cancellation message.
            break;
        case kAuthV4AppleLoginCancel:
            // Call the AuthV4.helper.showGameCenterLoginCancelDialog API to show the Game Center cancellation message.
            break;
        case kAuthV4AppleResponseError:
            // Check the GameCenter error value in the received error message.
            break;
        case kAuthV4AppleResponseFailLogin:
            // This occurs because the network is unstable or the GameCenter information does not match the registered information.
            // If errors persist even though the above information is correct, contact HIVE with the received error message.
            break;
            /***** When ProviderType = Google *****/
        case kAuthV4GoogleResponseFailLogin:
            // Guide the user to retry Google login.
            // If the issue continues to occur, contact HIVE with the received error message.
            break;
        case kAuthV4ProviderLoginCancel:
            // Display a login window that allows the user to retry Google login or log in through another Provider.
            break;
            /***** When ProviderType = QQ *****/
        case kAuthV4QQResponseFailLogin:
            // This may also occur when there is a network connection issue, so check the device's network connection status.
            // If this error occurs even when the device network connection is normal, contact HIVE with the error message.
            break;
        case kAuthV4QQResponseError:
            // QQGuide the user to retry login.
            // If the issue continues to occur, contact HIVE with the received error message.
            break;
        case kAuthV4QQCancel:
            // Display a login window that allows the user to retry QQ login or log in through another Provider.
            break;
        case kAuthV4QQNetworkError:
            // Check the device's network connection status.
            // If this error occurs even when the device network connection is normal, contact HIVE with the error message.
            break;
        case kAuthV4QQInvalidResponseData:
            // QQGuide the user to retry login.
            // If the issue continues to occur, contact HIVE with the received error message.
            break;
            /***** When ProviderType = WeChat *****/
        case kAuthV4WechatInvalidResponseData:
            // This issue may be temporary.
            // If the error continues to occur, contact HIVE with the error message.
            break;
        case kAuthV4WechatResponseError:
            // WeChat Guide the user to retry login.
            // If the issue continues to occur, contact HIVE with the received error message.
            break;
        case kAuthV4WechatResponseFailLogin:
            // This issue may be temporary.
            // If the error continues to occur, contact HIVE with the error message.
            break;
        case kAuthV4WechatNetworkError:
            // Check the device's network connection status.
            // If this error occurs even when the device network connection is normal, contact HIVE with the error message.
            break;
        case kAuthV4WechatNotSupportedRequest:
            // Guide the user to upgrade or install the WeChat app.
            break;
            /***** When ProviderType = VK *****/
        case kAuthV4VKResponseError:
            // VK Guide the user to retry login.
            // If the issue continues to occur, contact HIVE with the received error message.
            break;
        case kAuthV4VKCancel:
            // Display a login window that allows the user to retry VK login or log in through another Provider.
            break;
        case kAuthV4VKTokenResponseError:
            // The network status is unstable or it occurs due to a mismatch with the registered VK information.
            // If the above information is correct but errors continue to occur, please contact HIVE with the error message received.
            break;
            /***** If ProviderType = Apple *****/
        case kAuthV4SignInAppleCanceled:
            // Please display a login window where the user can retry Apple login or log in through another provider.
            break;
        case kAuthV4SignInAppleUnknown:
            // Please display a login window where the user can retry Apple login or log in through another provider.
            break;
        case kAuthV4SignInAppleFailed:
            // This issue may occur due to a temporary phenomenon.
            // If this error continues to occur, please contact HIVE with the error message.
            break;
        case kAuthV4SignInAppleInvalidResponse:
            // This issue may occur due to a temporary phenomenon.
            // If this error continues to occur, please contact HIVE with the error message.
            break;
        case kAuthV4SignInAppleNotHandled:
            // This issue may occur due to a temporary phenomenon.
            // If this error continues to occur, please contact HIVE with the error message.
            break;
            //...
    }
    // Please check the common AuthV4 HIVE user authentication status codes in the function below.
    [self checkAuthenticationState:result];
}];
Code Message How to solve
(Required implementation) AuthV4ResponseFailProviderUserID The user identifier could not be retrieved from the signed-in Provider. This issue may be temporary. If the error continues to occur, contact HIVE with the error message.
(Required implementation) AuthV4InvalidResponseData Data that does not comply with the HIVE server communication protocol was delivered. Contact HIVE with the received message.
(Required implementation) AuthV4NetworkError Failed to communicate with the HIVE server. Check the device's network connection status. If this error occurs even when the device network connection is normal, contact HIVE with the error message.
AuthV4NotInitialized The HIVE SDK has not been initialized. Call the AuthV4.setup API to initialize the HIVE SDK. View API
AuthV4InvalidProviderType This Provider is not supported by HIVE, or connect cannot be attempted with this Provider. Log in with a provider supported by HIVE. The AuthV4.connect API cannot be run with the Auto or Guest type. Select another Provider.
AuthV4InProgress An AuthV4 feature is already in progress. If the SignIn, SignOut, connect, disconnect, selectConflict, resolveConflict, showSignIn, showConflictSelection, or showAdultConfirm API is already running, duplicate API calls are not allowed. End the previous feature before calling it.
AuthV4NeedSignIn Not signed in. Call the AuthV4.helper.signIn API to sign in. View API
AuthV4ProviderAlreadyConnected The selected Provider is already linked to the signed-in account. Do not retry linking the selected Provider.
AuthV4NotSupportedProviderType This login Provider is not supported by HIVE. Try logging in with a provider supported by HIVE.
AuthV4 HIVE user authentication status code See the AuthV4 HIVE user authentication status code table. An error that can commonly occur in AuthV4 APIs was delivered. For details, see the AuthV4 HIVE user authentication status code table.

Code Message Resolution
(Required implementation) AuthV4HIVECancel [HIVE Provider] The user canceled HIVE account linking. Display a login screen that allows the user to retry HIVE login or log in through another Provider.
(Required implementation) AuthV4HIVEInvalidParam [HIVE Provider] The information required when attempting HIVE login is insufficient. Contact HIVE with the received error message.
(Required implementation) AuthV4HIVEResponseError [HIVE Provider] A problem occurred while displaying the HIVE webview. This may occur when there is a network connection issue, so check the device's network connection status. If this error occurs even when the device network connection is normal, contact HIVE with the error message.
AuthV4HIVEInProgress [HIVE Provider] The HIVE webview is already displayed. If the HIVE login or HIVE Cafe webview is already displayed, it will not be displayed again. Close the previously displayed webview and try again.

Code Message How to solve
(Required implementation) AuthV4FacebookResponseError [Facebook Provider] An error occurred during Facebook login. Facebook Check whether the framework and settings have been applied correctly.
(Required implementation) AuthV4FacebookCancel [Facebook Provider] The user canceled Facebook account linking. Display a login window that allows the user to retry Facebook login or log in through another Provider.
(Required implementation) AuthV4FacebookResponseError [Facebook Provider] Facebook User information could not be retrieved normally from Facebook after login. Contact HIVE with the received error message
(Required implementation) AuthV4FacebookInvalidResponseData [Facebook Provider] Facebook User information could not be retrieved normally from Facebook after login. Contact HIVE with the received error message

Code Message Resolution
(Required implementation) AuthV4QQResponseFailLogin [QQ Provider] After QQ login, the login session was not processed normally. This may occur when there is a network connection issue, so check the device's network connection status. If this error occurs even when the device network connection is normal, contact HIVE with the error message.
(Required implementation) AuthV4QQResponseError [QQ Provider] Login was canceled because an error occurred while attempting QQ login. Guide the user to retry QQ login. If the issue continues to occur, contact HIVE with the received error message.
(Required implementation) AuthV4QQCancel [QQ Provider] The user canceled QQ account linking. Display a login window that allows the user to retry QQ login or log in through another Provider.
(Required implementation) AuthV4QQNetworkError [QQ Provider] QQ login failed because a network communication issue occurred while attempting QQ login. Check the device's network connection status. If this error occurs even when the device network connection is normal, contact HIVE with the error message.
(Required implementation) AuthV4QQInvalidResponseData [QQ Provider] An error occurred while attempting QQ login, so login cannot proceed. Guide the user to retry QQ login. If the issue continues to occur, contact HIVE with the received error message.
AuthV4QQInProgress [QQ Provider] Login with the QQ Provider is already in progress. Call it after the previous feature ends.
AuthV4QQInvalidParam [QQ Provider] QQ login is unavailable because QQ AppID is not configured in HIVE. Configure the QQ AppID in the hive_config.xml file.
AuthV4QQNotInitialized [QQ Provider] QQ login is unavailable because QQ AppID is not configured in HIVE. Configure the QQ AppID in the hive_config.xml file.

Code Message Resolution
(Required implementation) AuthV4WechatInvalidResponseData [WeChat Provider] This is delivered when the information received after WeChat login is unclear. This issue may occur temporarily. If this error continues to occur, contact HIVE with the error message.
(Required implementation) AuthV4WechatResponseError [WeChat Provider] WeChat login failed. Guide the user to retry WeChat login. If the issue continues to occur, contact HIVE with the received error message.
(Required implementation) AuthV4WechatResponseFailLogin [WeChat Provider] This occurs when some of the information received after WeChat login is missing. This issue may occur temporarily. If this error continues to occur, contact HIVE with the error message.
(Required implementation) AuthV4WechatNetworkError [WeChat Provider] WeChat login failed because a network communication issue occurred while attempting WeChat login. Check the device's network connection status. If this error occurs even when the device network connection is normal, contact HIVE with the error message.
(Required implementation) AuthV4WechatNotSupportedRequest [WeChat Provider] This occurs when the WeChat app installed on the device is earlier than the supported version or the WeChat app is not present. Guide the user to upgrade or install the WeChat app.
AuthV4WechatInProgress [WeChat Provider] Login/sign-out with the WeChat Provider is already in progress. Call it after the previous feature ends.
AuthV4WechatInvalidAppKey [WeChat Provider] WeChat login is unavailable because WeChat information is not configured in HIVE. Configure WeChat information in the hive_config.xml file.

Code Message Resolution
(Required implementation) AuthV4VKResponseError [VK Provider] Login was canceled because an error occurred while attempting VK login. Guide the user to retry VK login. If the issue continues to occur, contact HIVE with the received error message. VK errors
(Required implementation) AuthV4VKCancel [VK Provider] The user canceled VK account linking. Display a login window that allows the user to retry VK login or log in through another Provider.
(Required implementation) AuthV4VKTokenResponseError [VK Provider] Token information could not be retrieved normally from the VK server. This occurs because the network is unstable or the VK information does not match the registered information. If errors continue to occur even though the above information is correct, contact HIVE with the received error message. VK errors
AuthV4VKInProgress [VK Provider] Login/sign-out with the VK Provider is already in progress. Call it after the previous feature ends.
AuthV4VKNotInitialized [VK Provider] VK login is unavailable because VK information is not configured in HIVE. Configure VK information in the hive_config.xml file.
AuthV4IDPNotInitialized [VK Provider] VK login is unavailable because VK information is not configured in HIVE. Configure VK information in the hive_config.xml file.

Code Message How to solve
(Required implementation) AuthV4SignInAppleCanceled [Apple Provider] The user canceled Apple account linking. Added in HIVE SDK v4.11.7.3, v4.13.0+ Display a login window that allows the user to retry Apple login or log in through another Provider.
(Required implementation) AuthV4SignInAppleUnknown [Apple Provider] Apple Login failed. This issue can also occur when Apple account linking is not configured on the running device. Added in HIVE SDK v4.11.7.3, v4.13.0+ Display a login window that allows the user to retry Apple login or log in through another Provider.
(Required implementation) AuthV4SignInAppleFailed [Apple Provider] Apple Login failed. Added in HIVE SDK v4.11.7.3, v4.13.0+ This issue may be temporary. If the error continues to occur, contact HIVE with the error message.
(Required implementation) AuthV4SignInAppleInvalidResponse [Apple Provider] AppleThe login request information received from it is invalid. Added in HIVE SDK v4.11.7.3, v4.13.0+ This issue may be temporary. If the error continues to occur, contact HIVE with the error message.
(Required implementation) AuthV4SignInAppleNotHandled [Apple Provider] AppleThe login request information sent to it is invalid. Added in HIVE SDK v4.11.7.3, v4.13.0+ This issue may be temporary. If the error continues to occur, contact HIVE with the error message.
AuthV4AppleInProgress [Apple Provider] Login with the Apple Provider is already in progress. Added in HIVE SDK v4.11.7.3, v4.13.0+ Call it after the previous feature ends.
AuthV4SignInAppleNotSupported [Apple Provider] Apple It was run on an OS version where login cannot proceed. (Earlier than iOS 13.0) Added in HIVE SDK v4.11.7.3, v4.13.0+ Disable or remove the Apple login button on devices where Apple login cannot proceed.

Code Message How to solve
(Required implementation) AuthV4AppleCancel [Game Center Provider] The user canceled GameCenter account linking. Display a login window that allows the user to log in through another provider. Call the AuthV4.helper.showGameCenterLoginCancelDialog API to show the Game Center cancellation message.
(Required implementation) AuthV4AppleLoginCancel [Game Center Provider] The user has already canceled GameCenter login. Call the AuthV4.helper.showGameCenterLoginCancelDialog API to show the Game Center cancellation message.
(Required implementation) AuthV4AppleResponseError [Game Center Provider] An error occurred during GameCenter login. Check the GameCenter error value in the received error message. GKErrorCode
(Required implementation) AuthV4AppleResponseFailLogin [Game Center Provider] Token information could not be retrieved normally from the GameCenter server. This occurs because the network is unstable or the GameCenter information does not match the registered information. If errors persist even though the above information is correct, contact HIVE with the received error message.

Code Message How to solve
(Required implementation) AuthV4GoogleResponseFailLogin [Google Provider] Google login failed. Guide the user to retry Google login. If the issue continues to occur, contact HIVE with the received error message.
(Required implementation) AuthV4ProviderLoginCancel [Google Provider] The user canceled Google login. Display a login window that allows the user to retry Google login or log in through another Provider.

AuthV4.disconnect

AuthV4.ProviderType providerType = AuthV4.ProviderType.HIVE;
AuthV4.disconnect (providerType, (ResultAPI result) =>; {
    switch(result.code) {
        case ResultAPI.Code.AuthV4NetworkError:
        // Check the device's network connection status.
        // If this error occurs even when the device network connection is normal, contact HIVE with the error message.
        break;
        ...
    }
    // For common AuthV4 HIVE user authentication status codes, check the function below.
    checkAuthenticationState(result);
});
AuthV4.ProviderType providerType = AuthV4.ProviderType.HIVE;
AuthV4::disconnect(providerType,[](ResultAPI const & result){
    switch(result.code) {
        case ResultAPI::Code::AuthV4NetworkError:
            // Check the device's network connection status.
            // If this error occurs even when the device network connection is normal, contact HIVE with the error message.
            break;
            ...
    }
    // For common AuthV4 HIVE user authentication status codes, check the function below.
    checkAuthenticationState(result);
});
AuthV4.ProviderType providerType = AuthV4.ProviderType.HIVE;
AuthV4.disconnect (providerType, new AuthV4.AuthV4DisconnectListener() {
    @Override
    public void onAuthV4Disconnect(ResultAPI result) {
    switch(result.code) {
        case AuthV4NetworkError:
            // Check the device's network connection status.
            // If this error occurs even when the device network connection is normal, contact HIVE with the error message.
            break;
        ...
    }
    // For common AuthV4 HIVE user authentication status codes, check the function below.
    checkAuthenticationState(result);
});
HIVEProviderType providerType = kHIVEProviderTypeHIVE;

[HIVEAuthV4 disconnect:providerType handler:^(HIVEResultAPI *result) {
    switch (result.code) {
        case kAuthV4NetworkError:
            // Check the device's network connection status.
            // If this error occurs even when the device network connection is normal, contact HIVE with the error message.
            break;
            //...
    }
    // For common AuthV4 HIVE user authentication status codes, check the function below.
    [self checkAuthenticationState:result];
}];
Code Message How to solve
(Required implementation) AuthV4InvalidResponseData Data that does not comply with the HIVE server communication protocol was delivered. Contact HIVE with the received message.
(Required implementation) AuthV4NetworkError Failed to communicate with the HIVE server. Check the device's network connection status. If this error occurs even when the device network connection is normal, contact HIVE with the error message.
AuthV4NotInitialized The HIVE SDK has not been initialized. Call the AuthV4.setup API to initialize the HIVE SDK. View API
AuthV4InvalidProviderType This Provider is not supported by HIVE, or disconnect cannot be attempted with this Provider. Log in with a provider supported by HIVE. The AuthV4.disconnect API cannot be run with the Auto or Guest type. Select another Provider.
AuthV4InProgress An AuthV4 feature is already in progress. If the SignIn, SignOut, connect, disconnect, selectConflict, resolveConflict, showSignIn, showConflictSelection, or showAdultConfirm API is already running, duplicate API calls are not allowed. End the previous feature before calling it.
AuthV4NeedSignIn Not signed in. Call the AuthV4.helper.signIn API to sign in. View API
AuthV4ProviderAlreadyDisconnected The selected Provider is already unlinked from the signed-in account. Do not retry unlinking the selected Provider.
AuthV4 HIVE user authentication status code See the AuthV4 HIVE user authentication status code table. See the AuthV4 HIVE user authentication status code table.

AuthV4.selectConflict

Int64 selectedPlayerId = 10000000000;
AuthV4.selectConflict(selectedPlayerId, (ResultAPI result, AuthV4.PlayerInfo playerInfo) =>; {
    switch(result.code) {
        case ResultAPI.Code.AuthV4NetworkError:
        // Please check the network connection status of the device.
        // If this error occurs despite the device's network connection being normal, please contact HIVE with the error message.
        break;
        case ResultAPI.Code.AuthV4NotRegisteredDevice:
        // This occurs when login is disconnected due to device authentication failure. Please try to re-login automatically or log out.
        break;
        ...
        // Additionally, the same ResultAPI codes as AuthV4.signIn will be passed.
    }
    // Please check the common AuthV4 HIVE user authentication status codes in the function below.
    checkAuthenticationState(result);
});
PlayerID selectedPlayerId = 10000000000;
AuthV4::selectConflict(selectedPlayerId, [](ResultAPI const & result,PlayerInfo const & playerInfo){
    switch(result.code) {
        case ResultAPI::Code::AuthV4NetworkError:
            // Check the device's network connection status.
            // If this error occurs even when the device network connection is normal, contact HIVE with the error message.
            break;
        case ResultAPI::Code::AuthV4NotRegisteredDevice:
            // This occurs when device authentication fails and the user is signed out. Try signing in again with AUTO or sign out.
            break;
            ...
            // The same ResultAPI code as AuthV4.signIn is also delivered.
    }
    // For common AuthV4 HIVE user authentication status codes, check the function below.
    checkAuthenticationState(result);
});
long selectedPlayerId = 10000000000l;
AuthV4.selectConflict(selectedPlayerId, new AuthV4.AuthV4SignInListener() {
    @Override
    public void onAuthV4SignIn(ResultAPI result, AuthV4.PlayerInfo playerInfo) {
        switch(result.code) {
            case AuthV4NetworkError:
                // Check the device's network connection status.
                // If this error occurs even when the device network connection is normal, contact HIVE with the error message.
                break;
            case AuthV4NotRegisteredDevice:
                // This occurs when device authentication fails and the user is signed out. Try signing in again with AUTO or sign out.
                break;
            ...
            // The same ResultAPI code as AuthV4.signIn is also delivered.
        }
        // For common AuthV4 HIVE user authentication status codes, check the function below.
        checkAuthenticationState(result);
    }
});
int64_t selectedPlayerId = 10000000000;


[HIVEAuthV4 selectConflict:selectedPlayerId handler:^(HIVEResultAPI *result, HIVEPlayerInfo *playerInfo) {
    switch (result.code) {
        case kAuthV4NetworkError:
            // Check the network connection status of the device.
            // If this error occurs despite the device's network connection being normal, please contact HIVE with the error message.
            break;
        case kAuthV4NotRegisteredDevice:
            // This occurs when the device authentication fails and the login is disconnected. Try to re-login automatically or log out.
            break;
            //...
            // Additionally, the same ResultAPI code as AuthV4.signIn will be passed.
    }
    // Please check the common AuthV4 HIVE user authentication status codes in the function below.
    [self checkAuthenticationState:result];
}];
Code Message How to solve
(Required implementation) AuthV4InvalidResponseData Data that does not comply with the HIVE server communication protocol was delivered. Contact HIVE with the received message.
(Required implementation) AuthV4NetworkError Failed to communicate with the HIVE server. Check the device's network connection status. If this error occurs even when the device network connection is normal, contact HIVE with the error message.
AuthV4NotInitialized The HIVE SDK has not been initialized. Call the AuthV4.setup API to initialize the HIVE SDK. View API
AuthV4NeedSignIn Not signed in. Call the AuthV4.helper.signIn API to sign in.View API
AuthV4InvalidConflictInfo No account conflict has occurred. No account conflict has occurred. Call this only when an account conflict has occurred.
AuthV4InProgress An AuthV4 feature is already in progress. If the SignIn, SignOut, connect, disconnect, selectConflict, resolveConflict, showSignIn, showConflictSelection, or showAdultConfirm API is already running, duplicate API calls are not allowed. End the previous feature before calling it.
AuthV4 HIVE user authentication status code See the AuthV4 HIVE user authentication status code table. An error that can commonly occur in AuthV4 APIs was delivered. For details, see the AuthV4 HIVE user authentication status code table.
Delivers the same response value as the hive.AuthV4.signIn API response. If a problem occurs while linking with the selected account, the same response as the hive.AuthV4.signIn API response is delivered. If a problem occurs while linking with the selected account, the same response as the hive.AuthV4.signIn API response is delivered.
AuthV4NotRegisteredDevice This is an unauthenticated device. During an account conflict, device authentication failed while switching to the selected account and the user was signed out. Try signing in again with AUTO or sign out.

AuthV4.isAutoSignIn

Boolean isAutoSignIn = AuthV4.isAutoSignIn();
bool isAutoSignIn = AuthV4::isAutoSignIn();
boolean isAutoSignIn = AuthV4.isAutoSignIn();
BOOL isAutoSignIn = [HIVEAuthV4 isAutoSignIn];
Code Message How to solve
No Result API

AuthV4.getPlayerInfo

AuthV4.PlayerInfo playerInfo = AuthV4.getPlayerInfo();
AuthV4::PlayerInfo info = AuthV4::getPlayerInfo();
AuthV4.PlayerInfo playerInfo = AuthV4.getPlayerInfo();
HIVEPlayerInfo *playerInfo = [HIVEAuthV4 getPlayerInfo];
Code Message Resolution
No Result API

AuthV4.getProfile

List playerIdList = new List();
playerIdList.append(10000000000);
AuthV4.getProfile(playerIdList, (ResultAPI result, List profileInfoList) =>; {
    switch(result.code) {
        case ResultAPI.Code.AuthV4NetworkError:
        // Check the device's network connection status.
        // If this error occurs even when the device network connection is normal, contact HIVE with the error message.
        break;
        ...
    }
    // For common AuthV4 HIVE user authentication status codes, check the function below.
    checkAuthenticationState(result);
});
std::vector playerIdList;
char* pEnd;
playerIdList.push_back(strtoll(10000000000,&pEnd,10));
AuthV4::getProfile(playerIdList, [](ResultAPI const & result,std::vector const & playerInfoList){
    switch(result.code) {
        case ResultAPI::Code::AuthV4NetworkError:
            // Check the device's network connection status.
            // If this error occurs even when the device network connection is normal, contact HIVE with the error message.
            break;
            ...
    }
    // For common AuthV4 HIVE user authentication status codes, check the function below.
    checkAuthenticationState(result);
});
ArrayList playerIdList = new ArrayList();
playerIdList.add(10000000000l);

AuthV4.getProfile(playerIdList, new AuthV4.AuthV4GetProfileListener() {
    @Override
    public void onAuthV4GetProfile(ResultAPI result, ArrayList profileInfoList) {
        switch(result.code) {
            case AuthV4NetworkError:
                // Check the device's network connection status.
                // If this error occurs even when the device network connection is normal, contact HIVE with the error message.
                break;
            ...
        }
        // For common AuthV4 HIVE user authentication status codes, check the function below.
        checkAuthenticationState(result);
    }
});
NSMutableArray *playerIdList = [[NSMutableArray alloc]init];
[playerIdList addObject:@([@"10000000000" longLongValue])];


[HIVEAuthV4 getProfile:playerIdList handler:^(HIVEResultAPI *result, NSArray *profileInfoList) {
    switch (result.code) {
        case kAuthV4NetworkError:
            // Check the device's network connection status.
            // If this error occurs even when the device network connection is normal, contact HIVE with the error message.
            break;
            //...
    }
    // For common AuthV4 HIVE user authentication status codes, check the function below.
    [self checkAuthenticationState:result];
}];
Code Message How to solve
(Required implementation) AuthV4NetworkError Failed to communicate with the HIVE server. Check the device's network connection status. If this error occurs even when the device network connection is normal, contact HIVE with the error message.
(Required implementation) AuthV4InvalidResponseData Data that does not comply with the HIVE server communication protocol was delivered. Contact HIVE with the received message.
AuthV4NotInitialized The HIVE SDK has not been initialized. Call the AuthV4.setup API to initialize the HIVE SDK. View API
AuthV4NeedSignIn Not signed in. Call the AuthV4.helper.signIn API to sign in. View API
AuthV4InvalidPlayeridList The entered PlayeridList is empty or invalid. Enter a valid PlayeridList.
AuthV4 HIVE user authentication status code See the AuthV4 HIVE user authentication status code table. An error that can commonly occur in AuthV4 APIs was delivered. For details, see the AuthV4 HIVE user authentication status code table.

AuthV4.showSignIn

AuthV4.showSignIn((ResultAPI result, AuthV4.PlayerInfo playerInfo) =>; {

    switch(result.code) {
        case ResultAPI.Code.AuthV4JsonException:
        // Contact HIVE with the received error message
        break;
        case ResultAPI.Code.AuthV4CancelDialog:
        // After displaying the login cancellation message, call the ShowSignIn API again to sign in.
        break;
        case ResultAPI.Code.AuthV4NetworkError:
        // Check the device's network connection status.
        // If this error occurs even when the device network connection is normal, contact HIVE with the error message.
        break;
        ...
        // The same ResultAPI code as AuthV4.signIn is also delivered.
    }
    // For common AuthV4 HIVE user authentication status codes, check the function below.
    checkAuthenticationState(result);

});
AuthV4::showSignIn([](ResultAPI const & result,PlayerInfo const & playerInfo){
    switch(result.code) {
        case ResultAPI::Code::AuthV4JsonException:
            // Contact HIVE with the received error message
            break;
        case ResultAPI::Code::AuthV4CancelDialog:
            // After displaying the login cancellation message, call the ShowSignIn API again to sign in.
            break;
        case ResultAPI::Code::AuthV4NetworkError:
            // Check the device's network connection status.
            // If this error occurs even when the device network connection is normal, contact HIVE with the error message.
            break;
            ...
            // The same ResultAPI code as AuthV4.signIn is also delivered.
    }
    // For common AuthV4 HIVE user authentication status codes, check the function below.
    checkAuthenticationState(result);
});
AuthV4.showSignIn(new AuthV4.AuthV4SignInListener() {
    @Override
    public void onAuthV4SignIn(ResultAPI result, AuthV4.PlayerInfo playerInfo) {
        switch(result.code) {
            case AuthV4JsonException:
                // Please contact HIVE with the error message received
                break;
            case AuthV4CancelDialog:
                // Display a message regarding the cancellation of login and then re-call the ShowSignIn API to perform login.
                break;
            case AuthV4NetworkError:
                // Check the network connection status of the device.
                // If this error occurs despite the device's network connection being normal, please contact HIVE with the error message.
                break;
            ...
            // Additionally, the same ResultAPI code as AuthV4.signIn will be provided.
        }
        // Please check the common AuthV4 HIVE user authentication status code in the function below.
        checkAuthenticationState(result);
    }
});
[HIVEAuthV4 showSignIn:^(HIVEResultAPI *result, HIVEPlayerInfo *playerInfo) {
    switch (result.code) {
        case kAuthV4JsonException:
            // Please contact HIVE with the error message received
            break;
        case kAuthV4CancelDialog:
            // Display a message regarding the cancellation of login and then re-call the ShowSignIn API to perform the login.
            break;
        case kAuthV4NetworkError:
            // Check the network connection status of the device.
            // If this error occurs despite the device's network connection being normal, please contact HIVE with the error message.
            break;
            //...
            // Additionally, the same ResultAPI code as AuthV4.signIn will be passed.
    }
    // Please check the common AuthV4 HIVE user authentication status codes in the function below.
    [self checkAuthenticationState:result];
}];
Code Message How to solve
(Required implementation) AuthV4JsonException The information required to try the ShowSignIn API is insufficient. Contact HIVE with the received error message
(Required implementation) AuthV4CancelDialog The user canceled login. After displaying the login cancellation message, call the ShowSignIn API again to sign in.
(Required implementation) AuthV4NetworkError Failed to communicate with the HIVE server. Check the device's network connection status. If this error occurs even when the device network connection is normal, contact HIVE with the error message.
AuthV4NotInitialized The HIVE SDK has not been initialized. Call the AuthV4.setup API to initialize the HIVE SDK. View API
HIVEResultAPITypeINVALID_SESSION Not signed in. Call the AuthV4.helper.signIn API to sign in. View API
AuthV4InProgress An AuthV4 feature is already in progress. If the SignIn, SignOut, connect, disconnect, selectConflict, resolveConflict, showSignIn, showConflictSelection, or showAdultConfirm API is already running, duplicate API calls are not allowed. End the previous feature before calling it.
AuthV4SessionExist There is an existing sign-in history. To sign in with the previously signed-in account, call the signIn API with providerType set to Auto.
AuthV4NotSupportedProviderType This Provider is not supported by HIVE. Try again with a provider supported by HIVE.
AuthV4InProgressAuthDialog The AuthV4 view is already displayed. If a webview is already displayed through the showSignIn, showConflictSelection, showProfile, showTerms, or showAdultConfirm API, duplicate view display is not allowed. End the previous feature before calling it.
Delivers the same response value as the hive.AuthV4.signIn API response. If a problem occurs while linking with the selected account, the same response as the hive.AuthV4.signIn API response is delivered. If a problem occurs while linking with the selected account, the same response as the hive.AuthV4.signIn API response is delivered.

AuthV4.showConflictSelection

JSONObject currentPlayerData = new JSONObject();
currentPlayerData.AddField("player_id", 10000000000);
currentPlayerData.AddField("Level", 1);

JSONObject conflictPlayerData = new JSONObject();
conflictPlayerData.AddField("player_id", 10000000000);
conflictPlayerData.AddField("Level", 10);

AuthV4.showConflictSelection(currentPlayerData, conflictPlayerData, (ResultAPI result, AuthV4.PlayerInfo playerInfo) =>; {
    switch(result.code) {
        case ResultAPI.Code.AuthV4JsonException:
        // Contact HIVE with the received error message
        break;
        case ResultAPI.Code.AuthV4CancelDialog:
        // After displaying the cancellation message, call the showConflictSelection API again to sign in.
        break;
        case ResultAPI.Code.AuthV4InvalidProviderType:
        // Contact HIVE with the received message.
        break;
        case ResultAPI.Code.AuthV4InvalidSigninSelection:
        // Contact HIVE with the received message.
        break;
        case ResultAPI.Code.AuthV4NetworkError:
        // Check the device's network connection status.
        // If this error occurs even when the device network connection is normal, contact HIVE with the error message.
        break;
        case ResultAPI.Code.AuthV4NotRegisteredDevice:
        // This occurs when device authentication fails and the user is signed out. Try signing in again with AUTO or sign out.
        break;
        ...
        // The same ResultAPI code as AuthV4.selectConflict is also delivered.
    }
});
PlayerID currentPlayerId = 10000000000;
PlayerID conflictPlayerId = 10000000000;
ConflictViewInfo* info = new ConflictViewInfo(currentPlayerId, conflictPlayerId);
info->SetValue("Name", "Current PlayerName", "Conflict PlayerName");
info->SetValue("Level", 1, 10);

AuthV4::showConflictSelection(*info, [](ResultAPI const & showConflictResult,PlayerInfo const & playerInfo){
    switch(result.code) {
        case ResultAPI::Code::AuthV4JsonException:
            // Contact HIVE with the received error message
            break;
        case ResultAPI::Code::AuthV4CancelDialog:
            // After displaying the cancellation message, call the showConflictSelection API again to sign in.
            break;
        case ResultAPI::Code::AuthV4InvalidProviderType:
            // Contact HIVE with the received message.
            break;
        case ResultAPI::Code::AuthV4InvalidSigninSelection:
            // Contact HIVE with the received message.
            break;
        case ResultAPI::Code::AuthV4NetworkError:
            // Check the device's network connection status.
            // If this error occurs even when the device network connection is normal, contact HIVE with the error message.
            break;
        case ResultAPI::Code::AuthV4NotRegisteredDevice:
            // This occurs when device authentication fails and the user is signed out. Try signing in again with AUTO or sign out.
            break;
            ...
            // The same ResultAPI code as AuthV4.selectConflict is also delivered.
    }
});
Map<String, Object> currentPlayerData = new HashMap<>();
currentPlayerData.put("player_id", 10000000000l);
Map<String, Object> currentPlayerGameData = new HashMap<>();
currentPlayerGameData.put("Name", 10000000000l);
currentPlayerGameData.put("Level", 1);

currentPlayerData.put("game_data", currentPlayerGameData);


Map<String, Object> conflictPlayerData = new HashMap<>();
conflictPlayerData.put("player_id", 10000000000l);
Map<String, Object> conflictPlayerGameData = new HashMap<>();
conflictPlayerGameData.put("Name", 10000000000l);
conflictPlayerGameData.put("Level", 10);

conflictPlayerData.put("game_data", conflictPlayerGameData);

AuthV4.showConflictSelection(currentPlayerData, conflictPlayerData, new AuthV4.AuthV4SignInListener() {
    @Override
    public void onAuthV4SignIn(ResultAPI result, AuthV4.PlayerInfo playerInfo) {
        switch(result.code) {
            case AuthV4JsonException:
                // Contact HIVE with the received error message
                break;
            case AuthV4CancelDialog:
                // After displaying the cancellation message, call the showConflictSelection API again to sign in.
                break;
            case AuthV4InvalidProviderType:
                // Contact HIVE with the received message.
                break;
            case AuthV4InvalidSigninSelection:
                // Contact HIVE with the received message.
                break;
            case AuthV4NetworkError:
                // Check the device's network connection status.
                // If this error occurs even when the device network connection is normal, contact HIVE with the error message.
                break;
            case AuthV4NotRegisteredDevice:
                // This occurs when device authentication fails and the user is signed out. Try signing in again with AUTO or sign out.
                break;
            ...
            // The same ResultAPI code as AuthV4.selectConflict is also delivered.
        }
    }
});
NSMutableDictionary *currentPlayerData = [[NSMutableDictionary alloc]init];
[currentPlayerData setObject:[NSNumber numberWithLongLong:10000000000] forKey:@"player_id"];
[currentPlayerData setObject:[NSNumber numberWithInt:1] forKey:@"Level"];

NSMutableDictionary *conflictPlayerData = [[NSMutableDictionary alloc]init];
[conflictPlayerData setObject:[NSNumber numberWithLongLong:10000000000] forKey:@"player_id"];
[conflictPlayerData setObject:[NSNumber numberWithInt:10] forKey:@"Level"];

[HIVEAuthV4 showConflictSelection:currentPlayerData conflictPlayerData:conflictPlayerData handler:^(HIVEResultAPI *result, HIVEPlayerInfo *playerInfo) {
    switch (result.code) {
        case kAuthV4JsonException:
            // Please contact HIVE with the received error message
            break;
        case kAuthV4CancelDialog:
            // Display a message regarding the cancellation and then re-call the showConflictSelection API to perform login.
            break;
        case kAuthV4InvalidProviderType:
            // Please contact HIVE with the received message.
            break;
        case kAuthV4InvalidSigninSelection:
            // Please contact HIVE with the received message.
            break;
        case kAuthV4NetworkError:
            // Check the network connection status of the device.
            // If this error occurs despite the device's network connection being normal, please contact HIVE with the error message.
            break;
        case kAuthV4NotRegisteredDevice:
            // This is the case where login is terminated due to device authentication failure. Try to re-login automatically or log out.
            break;
            //...
            // Additionally, the same ResultAPI code as AuthV4.selectConflict will be passed.
    }
}];
Code Message How to solve
(Required implementation) AuthV4JsonException The information required to try the showConflictSelection API is insufficient. Contact HIVE with the received error message
(Required implementation) AuthV4CancelDialog The user canceled conflict resolution. After displaying the cancellation message, call the showConflictSelection API again to sign in.
(Required implementation) AuthV4InvalidProviderType An error occurred while processing the Provider to link during account switching. Contact HIVE with the received message.
(Required implementation) AuthV4InvalidSigninSelection The account switching communication response data is invalid. Contact HIVE with the received message.
(Required implementation) AuthV4NetworkError Failed to communicate with the HIVE server. Check the device's network connection status. If this error occurs even when the device network connection is normal, contact HIVE with the error message.
AuthV4NotInitialized The HIVE SDK has not been initialized. Call the AuthV4.setup API to initialize the HIVE SDK. View API
AuthV4InProgress An AuthV4 feature is already in progress. If the SignIn, SignOut, connect, disconnect, selectConflict, resolveConflict, showSignIn, showConflictSelection, or showAdultConfirm API is already running, duplicate API calls are not allowed. End the previous feature before calling it.
AuthV4NeedSignIn Not signed in. Call the AuthV4.helper.signIn API to sign in. View API
AuthV4InvalidConflictInfo No account conflict has occurred. No account conflict has occurred. Call this only when an account conflict has occurred.
AuthV4InProgressAuthDialog The AuthV4 view is already displayed. If a webview is already displayed through the showSignIn, showConflictSelection, showProfile, showTerms, or showAdultConfirm API, duplicate view display is not allowed. End the previous feature before calling it.
AuthV4InvalidParamViewID The account information to switch to is invalid. This occurs when the account selected for account switching is not previous login information or later login information. Check whether the playerId of the entered currentPlayerdata and conflictPlayerData matches the logged-in information.
Delivers the same response value as the AuthV4.selectConflict API response.
AuthV4NotRegisteredDevice This is an unauthenticated device. During an account conflict, device authentication failed while switching to the selected account and the user was signed out. Try signing in again with AUTO or sign out.

AuthV4.showProfile

Int64 playerId = 10000000000;
AuthV4.showProfile(playerId, (ResultAPI result) =>; {
    switch(result.code) {
        case ResultAPI.Code.AuthV4NetworkError:
        // Check the device's network connection status.
        // If this error occurs even when the device network connection is normal, contact HIVE with the error message.
        break;
        case ResultAPI.Code.AuthV4JsonException:
        // Contact HIVE with the received error message
        break;
        case ResultAPI.Code.AuthV4WebviewDialogError:
        // Check the device's network connection status.
        // If this error occurs even when the device network connection is normal, contact HIVE with the error message.
        break;
        ...
    }
});
PlayerID playerId = 10000000000;
AuthV4::showProfile(playerId, [](ResultAPI const & result){
    switch(result.code) {
        case ResultAPI::Code::AuthV4NetworkError:
            // Check the device's network connection status.
            // If this error occurs even when the device network connection is normal, contact HIVE with the error message.
            break;
        case ResultAPI::Code::AuthV4JsonException:
            // Contact HIVE with the received error message
            break;
        case ResultAPI::Code::AuthV4WebviewDialogError:
            // Check the device's network connection status.
            // If this error occurs even when the device network connection is normal, contact HIVE with the error message.
            break;
            ...
    }
});
long playerId = 10000000000l;
AuthV4.showProfile(playerId, new AuthV4.AuthV4ShowProfileListener() {
    @Override
    public void onAuthV4ShowProfile(ResultAPI result) {
        switch(result.code) {
            case AuthV4NetworkError:
                // Check the device's network connection status.
                // If this error occurs even when the device network connection is normal, contact HIVE with the error message.
                break;
            case AuthV4JsonException:
                // Contact HIVE with the received error message
                break;
            case AuthV4WebviewDialogError:
                // Check the device's network connection status.
                // If this error occurs even when the device network connection is normal, contact HIVE with the error message.
                break;
            ...
        }
    }
});
int64_t playerId = 10000000000;

[HIVEAuthV4 showProfile:playerId handler:^(HIVEResultAPI *result) {
    switch (result.code) {
        case kAuthV4NetworkError:
            // Please check the network connection status of the device.
            // If this error occurs despite the device's network connection being normal, please contact HIVE with the error message.
            break;
        case kAuthV4JsonException:
            // Please contact HIVE with the error message received.
            break;
        case kAuthV4WebviewDialogError:
            // Please check the network connection status of the device.
            // If this error occurs despite the device's network connection being normal, please contact HIVE with the error message.
            break;
            //...
    }
}];
Code Message How to solve
(Required implementation) AuthV4NetworkError Failed to communicate with the HIVE server. Check the device's network connection status. If this error occurs even when the device network connection is normal, contact HIVE with the error message.
(Required implementation) AuthV4JsonException The information required to try the ShowProfile API is insufficient. Contact HIVE with the received error message
(Required implementation) AuthV4WebviewDialogError Failed to load the HIVE webview. Check the device's network connection status. If this error occurs even when the device network connection is normal, contact HIVE with the error message.
AuthV4NotInitialized The HIVE SDK has not been initialized. Call the AuthV4.setup API to initialize the HIVE SDK. View API
AuthV4InProgressAuthDialog The AuthV4 view is already displayed. If a webview is already displayed through the showSignIn, showConflictSelection, showProfile, showTerms, or showAdultConfirm API, duplicate view display is not allowed. End the previous feature before calling it.
AuthV4InvalidParamPlayerID The data passed when calling the API is invalid. Call the API with a valid PlayerId value.

AuthV4.showCafe

AuthV4.showCafe((ResultAPI result) =>; {
    switch(result.code) {
        case ResultAPI.Code.AuthV4NetworkError:
        // Check the device's network connection status.
        // If this error occurs even when the device network connection is normal, contact HIVE with the error message.
        break;
        case ResultAPI.Code.SocialResponseFailDismissDialog:
        // This may also occur when there is a network connection issue, so check the device's network connection status.
        // If this error occurs even when the device network connection is normal, contact HIVE with the error message.
        break;
        case ResultAPI.Code.SocialCancelDismissDialog:
        // Allow gameplay to continue.
        break;
        ...
    }
});
AuthV4::showCafe([](ResultAPI const & result){
    switch(result.code) {
        case ResultAPI::Code::AuthV4NetworkError:
            // Check the device's network connection status.
            // If this error occurs even when the device network connection is normal, contact HIVE with the error message.
            break;
        case ResultAPI::Code::SocialResponseFailDismissDialog:
            // This may also occur when there is a network connection issue, so check the device's network connection status.
            // If this error occurs even when the device network connection is normal, contact HIVE with the error message.
            break;
        case ResultAPI::Code::SocialCancelDismissDialog:
            // Allow gameplay to continue.
            break;
            ...
    }
});
AuthV4.showCafe(new AuthV4.AuthV4ShowCafeListener() {
    @Override
    public void onAuthV4ShowCafe(ResultAPI result) {
        switch(result.code) {
            case AuthV4NetworkError:
                // Check the network connection status of the device.
                // If this error occurs despite the network connection status of the device being normal, please contact HIVE with the error message.
                break;
            case SocialResponseFailDismissDialog:
                // This may occur if there is a problem with the network connection, so please check the network connection status of the device.
                // If this error occurs despite the network connection status of the device being normal, please contact HIVE with the error message.
                break;
            case SocialCancelDismissDialog:
                // Please continue to play the game.
                break;
            ...
        }
    }
});
[HIVEAuthV4 showCafe:^(HIVEResultAPI *result) {
    switch (result.code) {
        case kAuthV4NetworkError:
            // Check the device's network connection status.
            // If this error occurs even when the device network connection is normal, contact HIVE with the error message.
            break;
        case kSocialResponseFailDismissDialog:
            // This may also occur when there is a network connection issue, so check the device's network connection status.
            // If this error occurs even when the device network connection is normal, contact HIVE with the error message.
            break;
        case kSocialCancelDismissDialog:
            // Allow gameplay to continue.
            break;
            //...
    }
}];
Code Message How to solve
(Required implementation) AuthV4NetworkError Failed to communicate with the HIVE server. Check the device's network connection status. If this error occurs even when the device network connection is normal, contact HIVE with the error message.
(Required implementation) SocialResponseFailDismissDialog A problem occurred while displaying the webview. This may also occur when there is a network connection issue, so check the device's network connection status. If this error occurs even when the device network connection is normal, contact HIVE with the error message.
(Required implementation) SocialCancelDismissDialog Webview display has ended. Allow gameplay to continue.
AuthV4NotInitialized The HIVE SDK has not been initialized. Call the AuthV4.setup API to initialize the HIVE SDK. View API

AuthV4.showInquiry

AuthV4.showInquiry((ResultAPI result) =>; {
    switch(result.code) {
        case ResultAPI.Code.AuthV4NetworkError:
        // Check the device's network connection status.
        // If this error occurs even when the device network connection is normal, contact HIVE with the error message.
        break;
        case ResultAPI.Code.SocialResponseFailDismissDialog:
        // This may also occur when there is a network connection issue, so check the device's network connection status.
        // If this error occurs even when the device network connection is normal, contact HIVE with the error message.
        break;
        case ResultAPI.Code.SocialCancelDismissDialog:
        // Allow gameplay to continue.
        break;
        ...
    }
});
AuthV4::showInquiry([](ResultAPI const & result){
    switch(result.code) {
        case ResultAPI::Code::AuthV4NetworkError:
            // Check the device's network connection status.
            // If this error occurs even when the device network connection is normal, contact HIVE with the error message.
            break;
        case ResultAPI::Code::SocialResponseFailDismissDialog:
            // This may also occur when there is a network connection issue, so check the device's network connection status.
            // If this error occurs even when the device network connection is normal, contact HIVE with the error message.
            break;
        case ResultAPI::Code::SocialCancelDismissDialog:
            // Allow gameplay to continue.
            break;
            ...
    }
});
AuthV4.showInquiry(new AuthV4.AuthV4ShowInquiryListener() {
    @Override
    public void onAuthV4ShowInquiry(ResultAPI result) {
        switch(result.code) {
            case AuthV4NetworkError:
                // Check the network connection status of the device.
                // If this error occurs despite the network connection status being normal, please contact HIVE with the error message.
                break;
            case SocialResponseFailDismissDialog:
                // This may occur if there is a problem with the network connection, so please check the network connection status of the device.
                // If this error occurs despite the network connection status being normal, please contact HIVE with the error message.
                break;
            case SocialCancelDismissDialog:
                // Please continue to play the game.
                break;
            ...
        }
    }
});
[HIVEAuthV4 showInquiry:^(HIVEResultAPI *result) {
    switch (result.code) {
        case kAuthV4NetworkError:
            // Check the device's network connection status.
            // If this error occurs even when the device network connection is normal, contact HIVE with the error message.
            break;
        case kSocialResponseFailDismissDialog:
            // This may also occur when there is a network connection issue, so check the device's network connection status.
            // If this error occurs even when the device network connection is normal, contact HIVE with the error message.
            break;
        case kSocialCancelDismissDialog:
            // Allow gameplay to continue.
            break;
            //...
    }
}];
Code Message How to solve
(Required implementation) AuthV4NetworkError Failed to communicate with the HIVE server. Check the device's network connection status. If this error occurs even when the device network connection is normal, contact HIVE with the error message.
(Required implementation) SocialResponseFailDismissDialog A problem occurred while displaying the webview. This may also occur when there is a network connection issue, so check the device's network connection status. If this error occurs even when the device network connection is normal, contact HIVE with the error message.
(Required implementation) SocialCancelDismissDialog Webview display has ended. Allow gameplay to continue.
AuthV4NotInitialized The HIVE SDK has not been initialized. Call the AuthV4.setup API to initialize the HIVE SDK. View API

AuthV4.showTerms

Code Message How to solve
AuthV4NotInitialized HIVE SDK is not initialized. Call the AuthV4.setup API to initialize the HIVE SDK. View API
AuthV4InProgressAuthDialog The AuthV4 view is already being displayed. If the web view is currently displayed through showSignIn, showConflictSelection, showProfile, showTerms, showAdultConfirm APIs, duplicate view displays are not possible. Please terminate the previous function before calling.

AuthV4.showAdultConfirm

AuthV4.showAdultConfirm((ResultAPI result)=>;{
    switch(result.code){
        case ResultAPI.Code.AuthNetworkErrorRequestAdultConfirm:
        // HIVE server communication failed.
        break;
        case ResultAPI.Code.AuthJsonException:
        // Please contact HIVE with the message received.
        break;
        case ResultAPI.Code.AuthInvalidServerResponse:
        // Please contact HIVE with the message received.
        break;
        case ResultAPI.Code.AuthInvalidUser:
        // Please check the login status of the current account. If there are no issues with the login status, please contact HIVE with the error message.
        break;
        case ResultAPI.Code.AuthServerResponseNotSuccessful:
        // Please contact HIVE with the message received.
        break;
        case ResultAPI.Code.AuthUserCanceled:
        // Please guide the user to retry adult verification.
        break;
    }
});
AuthV4::showAdultConfirm([=](ResultAPI const & result){
    switch(result.code) {
        case ResultAPI::Code::AuthNetworkErrorRequestAdultConfirm:
        // Failed to communicate with the HIVE server.
        break;
        case ResultAPI::Code::AuthJsonException:
        // Contact HIVE with the received message.
        break;
        case ResultAPI::Code::AuthInvalidServerResponse:
        // Contact HIVE with the received message.
        break;
        case ResultAPI::Code::AuthInvalidUser:
            // Check the login status of the current account. If there is no issue with the login status, contact HIVE with the error message.
        break;
        case ResultAPI::Code::AuthServerResponseNotSuccessful:
            // Contact HIVE with the received message.
        break;
        case ResultAPI::Code::AuthUserCanceled:
            // Guide the user to a page where adult verification can be retried.
        break;
    }
});
AuthV4.showAdultConfirm(new AuthV4.AuthV4AdultConfirmListener() {
    @Override
    public void onAuthV4AdultConfirm(ResultAPI result) {
        switch(result.code) {
            case AuthNetworkErrorRequestAdultConfirm:
            // Failed to communicate with the HIVE server.
            break;
            case AuthInvalidServerResponse:
            // Contact HIVE with the received message.
            break;
            case AuthInvalidUser:
            // Check the login status of the current account. If there is no issue with the login status, contact HIVE with the error message.
            break;
            case AuthServerResponseNotSuccessful:
            // Contact HIVE with the received message.
            break;
            case AuthUserCanceled:
            // Guide the user to a page where adult verification can be retried.
            break;
        }
    }
});
[HIVEAuthV4 showAdultConfirm:^(HIVEResultAPI *result) {
    switch (result.code) {
        case kAuthNetworkErrorRequestAdultConfirm:
        // Failed to communicate with the HIVE server.
        break;
        case kAuthJsonException:
        // Contact HIVE with the received error message.
        break;
        case kAuthInvalidServerResponse:
        // Contact HIVE with the received message.
        break;
        case kAuthInvalidUser:
        // Check the login status of the current account. If there is no issue with the login status, contact HIVE with the error message.
        break;
        case kAuthServerResponseNotSuccessful:
        // Contact HIVE with the received message.
        break;
        case kAuthUserCanceled:
        // Guide the user to a page where adult verification can be retried.
        break;
    }
}];
Code Message How to solve
(Required implementation) AuthNetworkErrorRequestAdultConfirm Failed to communicate with the HIVE server. Added in HIVE SDK v4.13.0+ Check the device's network connection status. If this error occurs even when the device network connection is normal, contact HIVE with the error message.
(Required implementation) AuthJsonException The information required to try the showAdultConfirm API is insufficient. Added in HIVE SDK v4.13.0+ Contact HIVE with the received error message.
(Required implementation) AuthInvalidServerResponse Data that does not comply with the HIVE server communication protocol was delivered. Added in HIVE SDK v4.13.0+ Contact HIVE with the received message.
(Required implementation) AuthInvalidUser The signed-in user information is invalid. Added in HIVE SDK v4.13.0+ Check the login status of the current account. If there is no issue with the login status, contact HIVE with the error message.
(Required implementation) AuthServerResponseNotSuccessful Data that does not comply with the HIVE server communication protocol was delivered. Added in HIVE SDK v4.13.0+ Contact HIVE with the received message.
(Required implementation) AuthUserCanceled The user canceled adult verification, or adult verification was not processed normally. Added in HIVE SDK v4.13.0+ Guide the user to a page where adult verification can be retried.
AuthV4NotInitialized The HIVE SDK has not been initialized. Added in HIVE SDK v4.13.0+ Call the AuthV4.setup API to initialize the HIVE SDK. View API
AuthV4InProgress An AuthV4 feature is already in progress. Added in HIVE SDK v4.13.0+ If the SignIn, SignOut, connect, disconnect, selectConflict, resolveConflict, showSignIn, showConflictSelection, or showAdultConfirm API is already running, duplicate API calls are not allowed. End the previous feature before calling it.
AuthV4NeedSignIn Not signed in. Added in HIVE SDK v4.13.0+ Call the AuthV4.helper.signIn API to sign in. View API
AuthV4InProgressAuthDialog showAdultConfirm The feature is already in progress. Added in HIVE SDK v4.13.0+ If the showAdultConfirm API is already running, duplicate API calls are not allowed. End the previous feature before calling it.

AuthV4.checkProvider

AuthV4.ProviderType providerType = AuthV4.ProviderType.HIVE;
AuthV4.checkProvider (providerType, (ResultAPI result, AuthV4.ProviderInfo providerInfo) =>; {

    switch(result.code) {
        case ResultAPI.Code.AuthV4ResponseFailCheckProvider:
        // Please contact HIVE with the message received.
        break;
        /***** When ProviderType = HIVE *****/
        case ResultAPI.Code.AuthV4HIVECancel:
        // Please show a login window where the user can retry HIVE login or log in through another provider.
        break;
        case ResultAPI.Code.AuthV4HIVEResponseError:
        // This may occur due to network connection issues, so please check the device's network connection status.
        // If this error occurs despite the device's network connection being normal, please contact HIVE with the error message.
        break;
        case ResultAPI.Code.AuthV4HIVEInvalidParam:
        // Please contact HIVE with the error message received.
        break;
        /***** When ProviderType = Facebook *****/
        case ResultAPI.Code.AuthV4FacebookResponseError:
        // Please check if the Facebook framework and settings are applied correctly.
        break;
        case ResultAPI.Code.AuthV4FacebookCancel:
        // Please show a login window where the user can retry Facebook login or log in through another provider.
        break;
        case ResultAPI.Code.AuthV4FacebookInvalidResponseData:
        // Please contact HIVE with the error message received.
        break;
        /***** When ProviderType = Game Center *****/
        case ResultAPI.Code.AuthV4AppleCancel:
        // Please show a login window where the user can log in through another provider.
        // Call the AuthV4.helper.showGameCenterLoginCancelDialog API to display the Game Center cancellation message.
        break;
        case ResultAPI.Code.AuthV4AppleLoginCancel:
        // Call the AuthV4.helper.showGameCenterLoginCancelDialog API to display the Game Center cancellation message.
        break;
        case ResultAPI.Code.AuthV4AppleResponseError:
        // Please check the GameCenter error value in the received error message.
        break;
        case ResultAPI.Code.AuthV4AppleResponseFailLogin:
        // This occurs due to unstable network conditions or discrepancies with the registered GameCenter information.
        // If this error persists despite the above information being normal, please contact HIVE with the error message received.
        break;
        /***** When ProviderType = Google *****/
        case ResultAPI.Code.AuthV4GoogleResponseFailLogin:
        // Please guide the user to retry Google login.
        // If this persists, please contact HIVE with the error message received.
        break;
        case ResultAPI.Code.AuthV4ProviderLoginCancel:
        // Please show a login window where the user can retry Google login or log in through another provider.
        break;
        /***** When ProviderType = QQ *****/
        case ResultAPI.Code.AuthV4QQResponseFailLogin:
        // This may occur due to network connection issues, so please check the device's network connection status.
        // If this error occurs despite the device's network connection being normal, please contact HIVE with the error message.
        break;
        case ResultAPI.Code.AuthV4QQResponseError:
        // Please guide the user to retry QQ login.
        // If this persists, please contact HIVE with the error message received.
        break;
        case ResultAPI.Code.AuthV4QQCancel:
        // Please show a login window where the user can retry QQ login or log in through another provider.
        break;
        case ResultAPI.Code.AuthV4QQNetworkError:
        // Please check the device's network connection status.
        // If this error occurs despite the device's network connection being normal, please contact HIVE with the error message.
        break;
        case ResultAPI.Code.AuthV4QQInvalidResponseData:
        // Please guide the user to retry QQ login.
        // If this persists, please contact HIVE with the error message received.
        break;
        /***** When ProviderType = WeChat *****/
        case ResultAPI.Code.AuthV4WechatInvalidResponseData:
        // This issue may occur temporarily.
        // If this error persists, please contact HIVE with the error message.
        break;
        case ResultAPI.Code.AuthV4WechatResponseError:
        // Please guide the user to retry WeChat login.
        // If this persists, please contact HIVE with the error message received.
        break;
        case ResultAPI.Code.AuthV4WechatResponseFailLogin:
        // This issue may occur temporarily.
        // If this error persists, please contact HIVE with the error message.
        break;
        case ResultAPI.Code.AuthV4WechatNetworkError:
        // Please check the device's network connection status.
        // If this error occurs despite the device's network connection being normal, please contact HIVE with the error message.
        break;
        case ResultAPI.Code.AuthV4WechatNotSupportedRequest:
        // Please guide the user to upgrade or install the WeChat App version.
        break;
        /***** When ProviderType = VK *****/
        case ResultAPI.Code.AuthV4VKResponseError:
        // Please guide the user to retry VK login.
        // If this persists, please contact HIVE with the error message received.
        break;
        case ResultAPI.Code.AuthV4VKCancel:
        // Please show a login window where the user can retry VK login or log in through another provider.
        break;
        case ResultAPI.Code.AuthV4VKTokenResponseError:
        // This occurs due to unstable network conditions or discrepancies with the registered VK information.
        // If this error persists despite the above information being normal, please contact HIVE with the error message received.
        break;
        /***** When ProviderType = Apple *****/
        case ResultAPI.Code.AuthV4SignInAppleCanceled:
        // Please show a login window where the user can retry Apple login or log in through another provider.
        break;
        case ResultAPI.Code.AuthV4SignInAppleUnknown:
        // Please show a login window where the user can retry Apple login or log in through another provider.
        break;
        case ResultAPI.Code.AuthV4SignInAppleFailed:
        // This issue may occur due to a temporary phenomenon.
        // If this error persists, please contact HIVE with the error message.
        break;
        case ResultAPI.Code.AuthV4SignInAppleInvalidResponse:
        // This issue may occur due to a temporary phenomenon.
        // If this error persists, please contact HIVE with the error message.
        break;
        case ResultAPI.Code.AuthV4SignInAppleNotHandled:
        // This issue may occur due to a temporary phenomenon.
        // If this error persists, please contact HIVE with the error message.
        break;
        ...
    }
    // Please check the common AuthV4 HIVE user authentication status codes in the function below.
    checkAuthenticationState(result);

});
ProviderType type = ProviderType::HIVE;
AuthV4::checkProvider(type, [](ResultAPI const & result,ProviderInfo const & providerInfo){
    switch(result.code) {
        case ResultAPI::Code::AuthV4ResponseFailCheckProvider:
            // Contact HIVE with the received message.
            break;
            /***** When ProviderType = HIVE *****/
        case ResultAPI::Code::AuthV4HIVECancel:
            // Display a login window that allows the user to retry HIVE login or log in through another Provider.
            break;
        case ResultAPI::Code::AuthV4HIVEResponseError:
            // This may also occur when there is a network connection issue, so check the device's network connection status.
            // If this error occurs even when the device network connection is normal, contact HIVE with the error message.
            break;
        case ResultAPI::Code::AuthV4HIVEInvalidParam:
            // Contact HIVE with the received error message
            break;
            /***** When ProviderType = Facebook *****/
        case ResultAPI::Code::AuthV4FacebookResponseError:
            // Facebook Check whether the framework and settings have been applied correctly.
            break;
        case ResultAPI::Code::AuthV4FacebookCancel:
            // Display a login window that allows the user to retry Facebook login or log in through another Provider.
            break;
        case ResultAPI::Code::AuthV4FacebookInvalidResponseData:
            // Contact HIVE with the received error message
            break;
            /***** When ProviderType = Game Center *****/
        case ResultAPI::Code::AuthV4AppleCancel:
            // Display a login window that allows the user to log in through another provider.
            // Call the AuthV4.helper.showGameCenterLoginCancelDialog API to show the Game Center cancellation message.
            break;
        case ResultAPI::Code::AuthV4AppleLoginCancel:
            // Call the AuthV4.helper.showGameCenterLoginCancelDialog API to show the Game Center cancellation message.
            break;
        case ResultAPI::Code::AuthV4AppleResponseError:
            // Check the GameCenter error value in the received error message.
            break;
        case ResultAPI::Code::AuthV4AppleResponseFailLogin:
            // This occurs because the network is unstable or the GameCenter information does not match the registered information.
            // If errors persist even though the above information is correct, contact HIVE with the received error message.
            break;
            /***** When ProviderType = Google *****/
        case ResultAPI::Code::AuthV4GoogleResponseFailLogin:
            // Guide the user to retry Google login.
            // If the issue continues to occur, contact HIVE with the received error message.
            break;
        case ResultAPI::Code::AuthV4ProviderLoginCancel:
            // Display a login window that allows the user to retry Google login or log in through another Provider.
            break;
            /***** When ProviderType = QQ *****/
        case ResultAPI::Code::AuthV4QQResponseFailLogin:
            // This may also occur when there is a network connection issue, so check the device's network connection status.
            // If this error occurs even when the device network connection is normal, contact HIVE with the error message.
            break;
        case ResultAPI::Code::AuthV4QQResponseError:
            // QQGuide the user to retry login.
            // If the issue continues to occur, contact HIVE with the received error message.
            break;
        case ResultAPI::Code::AuthV4QQCancel:
            // Display a login window that allows the user to retry QQ login or log in through another Provider.
            break;
        case ResultAPI::Code::AuthV4QQNetworkError:
            // Check the device's network connection status.
            // If this error occurs even when the device network connection is normal, contact HIVE with the error message.
            break;
        case ResultAPI::Code::AuthV4QQInvalidResponseData:
            // QQGuide the user to retry login.
            // If the issue continues to occur, contact HIVE with the received error message.
            break;
            /***** When ProviderType = WeChat *****/
        case ResultAPI::Code::AuthV4WechatInvalidResponseData:
            // This issue may be temporary.
            // If the error continues to occur, contact HIVE with the error message.
            break;
        case ResultAPI::Code::AuthV4WechatResponseError:
            // WeChat Guide the user to retry login.
            // If the issue continues to occur, contact HIVE with the received error message.
            break;
        case ResultAPI::Code::AuthV4WechatResponseFailLogin:
            // This issue may be temporary.
            // If the error continues to occur, contact HIVE with the error message.
            break;
        case ResultAPI::Code::AuthV4WechatNetworkError:
            // Check the device's network connection status.
            // If this error occurs even when the device network connection is normal, contact HIVE with the error message.
            break;
        case ResultAPI::Code::AuthV4WechatNotSupportedRequest:
            // Guide the user to upgrade or install the WeChat app.
            break;
            /***** When ProviderType = VK *****/
        case ResultAPI::Code::AuthV4VKResponseError:
            // VK Guide the user to retry login.
            // If the issue continues to occur, contact HIVE with the received error message.
            break;
        case ResultAPI::Code::AuthV4VKCancel:
            // Display a login window that allows the user to retry VK login or log in through another Provider.
            break;
        case ResultAPI::Code::AuthV4VKTokenResponseError:
            // The network status is unstable or the VK information does not match the registered information.
            // If the above information is normal but errors continue to occur, please contact HIVE with the error message received.
            break;
            /***** If ProviderType = Apple *****/
        case ResultAPI::Code::AuthV4SignInAppleCanceled:
            // Please display a login window where the user can retry Apple login or log in through another provider.
            break;
        case ResultAPI::Code::AuthV4SignInAppleUnknown:
            // Please display a login window where the user can retry Apple login or log in through another provider.
            break;
        case ResultAPI::Code::AuthV4SignInAppleFailed:
            // This issue may occur due to a temporary phenomenon.
            // If this error continues to occur, please contact HIVE with the error message.
            break;
        case ResultAPI::Code::AuthV4SignInAppleInvalidResponse:
            // This issue may occur due to a temporary phenomenon.
            // If this error continues to occur, please contact HIVE with the error message.
            break;
        case ResultAPI::Code::AuthV4SignInAppleNotHandled:
            // This issue may occur due to a temporary phenomenon.
            // If this error continues to occur, please contact HIVE with the error message.
            break;
            ...
    }
    // Please check the common AuthV4 HIVE user authentication status codes in the function below.
    checkAuthenticationState(result);
});
AuthV4.ProviderType providerType = AuthV4.ProviderType.HIVE;
AuthV4.checkProvider(providerType, new AuthV4.AuthV4CheckProviderListener() {
    @Override
    public void onDeviceProviderInfo(ResultAPI result, AuthV4.ProviderInfo providerInfo) {
        switch(result.code) {
            case AuthV4ResponseFailCheckProvider:
                // Please contact HIVE with the message received.
                break;
            /***** When ProviderType = HIVE *****/
            case AuthV4HIVECancel:
                // Please show a login window where the user can retry HIVE login or log in through another provider.
                break;
            case AuthV4HIVEResponseError:
                // This may occur if there is a problem with the network connection, so please check the device's network connection status.
                // If this error occurs despite the device's network connection status being normal, please contact HIVE with the error message.
                break;
            case AuthV4HIVEInvalidParam:
                // Please contact HIVE with the error message received.
                break;
            /***** When ProviderType = Facebook *****/
            case AuthV4FacebookResponseError:
                // Please check if the Facebook framework and settings are correctly applied.
                break;
            case AuthV4FacebookCancel:
                // Please show a login window where the user can retry Facebook login or log in through another provider.
                break;
            case AuthV4FacebookInvalidResponseData:
                // Please contact HIVE with the error message received.
                break;
            /***** When ProviderType = Google *****/
            case AuthV4GoogleResponseFailLogin:
                // Please guide the user to retry Google login.
                // If this continues to occur, please contact HIVE with the error message received.
                break;
            case AuthV4ProviderLoginCancel:
                // Please show a login window where the user can retry Google login or log in through another provider.
                break;
            /***** When ProviderType = QQ *****/
            case AuthV4QQResponseFailLogin:
                // This may occur if there is a problem with the network connection, so please check the device's network connection status.
                // If this error occurs despite the device's network connection status being normal, please contact HIVE with the error message.
                break;
            case AuthV4QQResponseError:
                // Please guide the user to retry QQ login.
                // If this continues to occur, please contact HIVE with the error message received.
                break;
            case AuthV4QQCancel:
                // Please show a login window where the user can retry QQ login or log in through another provider.
                break;
            case AuthV4QQNetworkError:
                // Please check the device's network connection status.
                // If this error occurs despite the device's network connection status being normal, please contact HIVE with the error message.
                break;
            case AuthV4QQInvalidResponseData:
                // Please guide the user to retry QQ login.
                // If this continues to occur, please contact HIVE with the error message received.
                break;
            /***** When ProviderType = WeChat *****/
            case AuthV4WechatInvalidResponseData:
                // This issue may occur as a temporary phenomenon.
                // If this error continues to occur, please contact HIVE with the error message.
                break;
            case AuthV4WechatResponseError:
                // Please guide the user to retry WeChat login.
                // If this continues to occur, please contact HIVE with the error message received.
                break;
            case AuthV4WechatResponseFailLogin:
                // This issue may occur as a temporary phenomenon.
                // If this error continues to occur, please contact HIVE with the error message.
                break;
            case AuthV4WechatNetworkError:
                // Please check the device's network connection status.
                // If this error occurs despite the device's network connection status being normal, please contact HIVE with the error message.
                break;
            case AuthV4WechatNotSupportedRequest:
                // Please guide the user to upgrade or install the WeChat App version.
                break;
            /***** When ProviderType = VK *****/
            case AuthV4VKResponseError:
                // Please guide the user to retry VK login.
                // If this continues to occur, please contact HIVE with the error message received.
                break;
            case AuthV4VKCancel:
                // Please show a login window where the user can retry VK login or log in through another provider.
                break;
            case AuthV4VKTokenResponseError:
                // This occurs due to unstable network conditions or discrepancies with VK information.
                // If the above information is normal but errors continue to occur, please contact HIVE with the error message received.
                break;
            /***** When ProviderType = Apple *****/
            case AuthV4SignInAppleCanceled:
                // Please show a login window where the user can retry Apple login or log in through another provider.
                break;
            case AuthV4SignInAppleUnknown:
                // Please show a login window where the user can retry Apple login or log in through another provider.
                break;
            case AuthV4SignInAppleFailed:
                // This issue may occur as a temporary phenomenon.
                // If this error continues to occur, please contact HIVE with the error message.
                break;
            case AuthV4SignInAppleInvalidResponse:
                // This issue may occur due to a temporary phenomenon.
                // If this error persists, please contact HIVE with the error message.
                break;
            case AuthV4SignInAppleNotHandled:
                // This issue may occur due to a temporary phenomenon.
                // If this error persists, please contact HIVE with the error message.
                break;
            ...
        }
        // Please check the function below for common AuthV4 HIVE user authentication status codes.
        checkAuthenticationState(result);
    }
});
HIVEProviderType providerType = kHIVEProviderTypeHIVE;

[HIVEAuthV4 checkProvider:providerType handler:^(HIVEResultAPI *result, HIVEProviderInfo *providerInfo) {
    switch (result.code) {
        case kAuthV4ResponseFailCheckProvider:
            // Please contact HIVE with the message received.
            break;
            /***** ProviderType = HIVE *****/
        case kAuthV4HIVECancel:
            // Please show a login window where the user can retry HIVE login or log in through another Provider.
            break;
        case kAuthV4HIVEResponseError:
            // This may occur if there is a problem with the network connection, so please check the device's network connection status.
            // If this error occurs despite the device's network connection being normal, please contact HIVE with the error message.
            break;
        case kAuthV4HIVEInvalidParam:
            // Please contact HIVE with the error message received.
            break;
            /***** ProviderType = Facebook *****/
        case kAuthV4FacebookResponseError:
            // Please check if the Facebook framework and settings are applied correctly.
            break;
        case kAuthV4FacebookCancel:
            // Please show a login window where the user can retry Facebook login or log in through another Provider.
            break;
        case kAuthV4FacebookInvalidResponseData:
            // Please contact HIVE with the error message received.
            break;
            /***** ProviderType = Game Center *****/
        case kAuthV4AppleCancel:
            // Please show a login window where the user can log in through another Provider.
            // Call the AuthV4.helper.showGameCenterLoginCancelDialog API to display the Game Center cancellation notice.
            break;
        case kAuthV4AppleLoginCancel:
            // Call the AuthV4.helper.showGameCenterLoginCancelDialog API to display the Game Center cancellation notice.
            break;
        case kAuthV4AppleResponseError:
            // Please check the GameCenter error value in the received error message.
            break;
        case kAuthV4AppleResponseFailLogin:
            // This occurs when the network status is unstable or does not match the registered GameCenter information.
            // If the above information is normal but the error continues to occur, please contact HIVE with the error message received.
            break;
            /***** ProviderType = Google *****/
        case kAuthV4GoogleResponseFailLogin:
            // Please guide the user to retry Google login.
            // If this continues to occur, please contact HIVE with the error message received.
            break;
        case kAuthV4ProviderLoginCancel:
            // Please show a login window where the user can retry Google login or log in through another Provider.
            break;
            /***** ProviderType = QQ *****/
        case kAuthV4QQResponseFailLogin:
            // This may occur if there is a problem with the network connection, so please check the device's network connection status.
            // If this error occurs despite the device's network connection being normal, please contact HIVE with the error message.
            break;
        case kAuthV4QQResponseError:
            // Please guide the user to retry QQ login.
            // If this continues to occur, please contact HIVE with the error message received.
            break;
        case kAuthV4QQCancel:
            // Please show a login window where the user can retry QQ login or log in through another Provider.
            break;
        case kAuthV4QQNetworkError:
            // Please check the device's network connection status.
            // If this error occurs despite the device's network connection being normal, please contact HIVE with the error message.
            break;
        case kAuthV4QQInvalidResponseData:
            // Please guide the user to retry QQ login.
            // If this continues to occur, please contact HIVE with the error message received.
            break;
            /***** ProviderType = WeChat *****/
        case kAuthV4WechatInvalidResponseData:
            // This issue may occur as a temporary phenomenon.
            // If this error continues to occur, please contact HIVE with the error message.
            break;
        case kAuthV4WechatResponseError:
            // Please guide the user to retry WeChat login.
            // If this continues to occur, please contact HIVE with the error message received.
            break;
        case kAuthV4WechatResponseFailLogin:
            // This issue may occur as a temporary phenomenon.
            // If this error continues to occur, please contact HIVE with the error message.
            break;
        case kAuthV4WechatNetworkError:
            // Please check the device's network connection status.
            // If this error occurs despite the device's network connection being normal, please contact HIVE with the error message.
            break;
        case kAuthV4WechatNotSupportedRequest:
            // Please guide the user to upgrade or install the WeChat App version.
            break;
            /***** ProviderType = VK *****/
        case kAuthV4VKResponseError:
            // Please guide the user to retry VK login.
            // If this continues to occur, please contact HIVE with the error message received.
            break;
        case kAuthV4VKCancel:
            // Please show a login window where the user can retry VK login or log in through another Provider.
            break;
        case kAuthV4VKTokenResponseError:
            // This occurs when the network status is unstable or does not match the registered VK information.
            // If the above information is normal but the error continues to occur, please contact HIVE with the error message received.
            break;
            /***** ProviderType = Apple *****/
        case kAuthV4SignInAppleCanceled:
            // Please show a login window where the user can retry Apple login or log in through another Provider.
            break;
        case kAuthV4SignInAppleUnknown:
            // Please show a login window where the user can retry Apple login or log in through another provider.
            break;
        case kAuthV4SignInAppleFailed:
            // This issue may occur due to a temporary phenomenon.
            // If this error persists, please contact HIVE with the error message.
            break;
        case kAuthV4SignInAppleInvalidResponse:
            // This issue may occur due to a temporary phenomenon.
            // If this error persists, please contact HIVE with the error message.
            break;
        case kAuthV4SignInAppleNotHandled:
            // This issue may occur due to a temporary phenomenon.
            // If this error persists, please contact HIVE with the error message.
            break;
            //...
    }
    // Please check the common AuthV4 HIVE user authentication status codes in the function below.
    [self checkAuthenticationState:result];
}];
Code Message How to solve
(Required Implementation) AuthV4ResponseFailCheckProvider There was a problem connecting to the corresponding Provider. Please contact HIVE with the message received.
AuthV4NotInitialized HIVE SDK has not been initialized. Please call the AuthV4.setup API to initialize the HIVE SDK. View API
AuthV4InvalidProviderType This is a Provider not supported by HIVE or a Provider that cannot attempt checkProvider. Please log in using a provider supported by HIVE. The AuthV4.checkProvider API cannot be performed with Auto or Guest types. Please choose another Provider.
AuthV4NotSupportedProviderType This is a Provider not supported by HIVE. Please try using a provider supported by HIVE.

Code Message Resolution
(Required implementation) AuthV4HIVECancel [HIVE Provider] The user canceled HIVE account linking. Display a login screen that allows the user to retry HIVE login or log in through another Provider.
(Required implementation) AuthV4HIVEInvalidParam [HIVE Provider] The information required when attempting HIVE login is insufficient. Contact HIVE with the received error message.
(Required implementation) AuthV4HIVEResponseError [HIVE Provider] A problem occurred while displaying the HIVE webview. This may occur when there is a network connection issue, so check the device's network connection status. If this error occurs even when the device network connection is normal, contact HIVE with the error message.
AuthV4HIVEInProgress [HIVE Provider] The HIVE webview is already displayed. If the HIVE login or HIVE Cafe webview is already displayed, it will not be displayed again. Close the previously displayed webview and try again.

Code Message How to solve
(Required implementation) AuthV4FacebookResponseError [Facebook Provider] An error occurred during Facebook login. Facebook Check whether the framework and settings have been applied correctly.
(Required implementation) AuthV4FacebookCancel [Facebook Provider] The user canceled Facebook account linking. Display a login window that allows the user to retry Facebook login or log in through another Provider.
(Required implementation) AuthV4FacebookResponseError [Facebook Provider] Facebook User information could not be retrieved normally from Facebook after login. Contact HIVE with the received error message
(Required implementation) AuthV4FacebookInvalidResponseData [Facebook Provider] Facebook User information could not be retrieved normally from Facebook after login. Contact HIVE with the received error message

Code Message Resolution
(Required implementation) AuthV4QQResponseFailLogin [QQ Provider] After QQ login, the login session was not processed normally. This may occur when there is a network connection issue, so check the device's network connection status. If this error occurs even when the device network connection is normal, contact HIVE with the error message.
(Required implementation) AuthV4QQResponseError [QQ Provider] Login was canceled because an error occurred while attempting QQ login. Guide the user to retry QQ login. If the issue continues to occur, contact HIVE with the received error message.
(Required implementation) AuthV4QQCancel [QQ Provider] The user canceled QQ account linking. Display a login window that allows the user to retry QQ login or log in through another Provider.
(Required implementation) AuthV4QQNetworkError [QQ Provider] QQ login failed because a network communication issue occurred while attempting QQ login. Check the device's network connection status. If this error occurs even when the device network connection is normal, contact HIVE with the error message.
(Required implementation) AuthV4QQInvalidResponseData [QQ Provider] An error occurred while attempting QQ login, so login cannot proceed. Guide the user to retry QQ login. If the issue continues to occur, contact HIVE with the received error message.
AuthV4QQInProgress [QQ Provider] Login with the QQ Provider is already in progress. Call it after the previous feature ends.
AuthV4QQInvalidParam [QQ Provider] QQ login is unavailable because QQ AppID is not configured in HIVE. Configure the QQ AppID in the hive_config.xml file.
AuthV4QQNotInitialized [QQ Provider] QQ login is unavailable because QQ AppID is not configured in HIVE. Configure the QQ AppID in the hive_config.xml file.

Code Message Resolution
(Required implementation) AuthV4WechatInvalidResponseData [WeChat Provider] This is delivered when the information received after WeChat login is unclear. This issue may occur temporarily. If this error continues to occur, contact HIVE with the error message.
(Required implementation) AuthV4WechatResponseError [WeChat Provider] WeChat login failed. Guide the user to retry WeChat login. If the issue continues to occur, contact HIVE with the received error message.
(Required implementation) AuthV4WechatResponseFailLogin [WeChat Provider] This occurs when some of the information received after WeChat login is missing. This issue may occur temporarily. If this error continues to occur, contact HIVE with the error message.
(Required implementation) AuthV4WechatNetworkError [WeChat Provider] WeChat login failed because a network communication issue occurred while attempting WeChat login. Check the device's network connection status. If this error occurs even when the device network connection is normal, contact HIVE with the error message.
(Required implementation) AuthV4WechatNotSupportedRequest [WeChat Provider] This occurs when the WeChat app installed on the device is earlier than the supported version or the WeChat app is not present. Guide the user to upgrade or install the WeChat app.
AuthV4WechatInProgress [WeChat Provider] Login/sign-out with the WeChat Provider is already in progress. Call it after the previous feature ends.
AuthV4WechatInvalidAppKey [WeChat Provider] WeChat login is unavailable because WeChat information is not configured in HIVE. Configure WeChat information in the hive_config.xml file.

Code Message Resolution
(Required implementation) AuthV4VKResponseError [VK Provider] Login was canceled because an error occurred while attempting VK login. Guide the user to retry VK login. If the issue continues to occur, contact HIVE with the received error message. VK errors
(Required implementation) AuthV4VKCancel [VK Provider] The user canceled VK account linking. Display a login window that allows the user to retry VK login or log in through another Provider.
(Required implementation) AuthV4VKTokenResponseError [VK Provider] Token information could not be retrieved normally from the VK server. This occurs because the network is unstable or the VK information does not match the registered information. If errors continue to occur even though the above information is correct, contact HIVE with the received error message. VK errors
AuthV4VKInProgress [VK Provider] Login/sign-out with the VK Provider is already in progress. Call it after the previous feature ends.
AuthV4VKNotInitialized [VK Provider] VK login is unavailable because VK information is not configured in HIVE. Configure VK information in the hive_config.xml file.
AuthV4IDPNotInitialized [VK Provider] VK login is unavailable because VK information is not configured in HIVE. Configure VK information in the hive_config.xml file.

Code Message How to solve
(Required implementation) AuthV4SignInAppleCanceled [Apple Provider] The user canceled Apple account linking. Added in HIVE SDK v4.11.7.3, v4.13.0+ Display a login window that allows the user to retry Apple login or log in through another Provider.
(Required implementation) AuthV4SignInAppleUnknown [Apple Provider] Apple Login failed. This issue can also occur when Apple account linking is not configured on the running device. Added in HIVE SDK v4.11.7.3, v4.13.0+ Display a login window that allows the user to retry Apple login or log in through another Provider.
(Required implementation) AuthV4SignInAppleFailed [Apple Provider] Apple Login failed. Added in HIVE SDK v4.11.7.3, v4.13.0+ This issue may be temporary. If the error continues to occur, contact HIVE with the error message.
(Required implementation) AuthV4SignInAppleInvalidResponse [Apple Provider] AppleThe login request information received from it is invalid. Added in HIVE SDK v4.11.7.3, v4.13.0+ This issue may be temporary. If the error continues to occur, contact HIVE with the error message.
(Required implementation) AuthV4SignInAppleNotHandled [Apple Provider] AppleThe login request information sent to it is invalid. Added in HIVE SDK v4.11.7.3, v4.13.0+ This issue may be temporary. If the error continues to occur, contact HIVE with the error message.
AuthV4AppleInProgress [Apple Provider] Login with the Apple Provider is already in progress. Added in HIVE SDK v4.11.7.3, v4.13.0+ Call it after the previous feature ends.
AuthV4SignInAppleNotSupported [Apple Provider] Apple It was run on an OS version where login cannot proceed. (Earlier than iOS 13.0) Added in HIVE SDK v4.11.7.3, v4.13.0+ Disable or remove the Apple login button on devices where Apple login cannot proceed.

Code Message How to solve
(Required implementation) AuthV4AppleCancel [Game Center Provider] The user canceled GameCenter account linking. Display a login window that allows the user to log in through another provider. Call the AuthV4.helper.showGameCenterLoginCancelDialog API to show the Game Center cancellation message.
(Required implementation) AuthV4AppleLoginCancel [Game Center Provider] The user has already canceled GameCenter login. Call the AuthV4.helper.showGameCenterLoginCancelDialog API to show the Game Center cancellation message.
(Required implementation) AuthV4AppleResponseError [Game Center Provider] An error occurred during GameCenter login. Check the GameCenter error value in the received error message. GKErrorCode
(Required implementation) AuthV4AppleResponseFailLogin [Game Center Provider] Token information could not be retrieved normally from the GameCenter server. This occurs because the network is unstable or the GameCenter information does not match the registered information. If errors persist even though the above information is correct, contact HIVE with the received error message.

Code Message How to solve
(Required implementation) AuthV4GoogleResponseFailLogin [Google Provider] Google login failed. Guide the user to retry Google login. If the issue continues to occur, contact HIVE with the received error message.
(Required implementation) AuthV4ProviderLoginCancel [Google Provider] The user canceled Google login. Display a login window that allows the user to retry Google login or log in through another Provider.

AuthV4.checkMaintenance

Boolean isShow = true;
AuthV4.checkMaintenance(isShow, (ResultAPI result, List maintenanceInfoList) =>; {
    switch(result.code) {
        case ResultAPI.Code.AuthV4NetworkError:
        // Check the device's network connection status.
        // If this error occurs even when the device network connection is normal, contact HIVE with the error message.
        break;
        case ResultAPI.Code.AuthV4InvalidResponseData:
        // Contact HIVE with the received message.
        break;
        ...
    }
    // For common AuthV4 HIVE user authentication status codes, check the function below.
    checkAuthenticationState(result);
});
bool isShow = true;
AuthV4::checkMaintenance(isShow, [](ResultAPI const & result,std::vector const & maintenanceInfolist){
    switch(result.code) {
        case ResultAPI::Code::AuthV4NetworkError:
            // Check the device's network connection status.
            // If this error occurs even when the device network connection is normal, contact HIVE with the error message.
            break;
        case ResultAPI::Code::AuthV4InvalidResponseData:
            // Contact HIVE with the received message.
            break;
            ...
    }
    // For common AuthV4 HIVE user authentication status codes, check the function below.
    checkAuthenticationState(result);
});
boolean isShow = true;
AuthV4.checkMaintenance(isShow, new AuthV4.AuthV4MaintenanceListener() {
    @Override
    public void onAuthV4Maintenance(ResultAPI result, ArrayList maintenanceInfo) {
        switch(result.code) {
            case AuthV4NetworkError:
                // Check the device's network connection status.
                // If this error occurs even when the device network connection is normal, contact HIVE with the error message.
                break;
            case AuthV4InvalidResponseData:
                // Contact HIVE with the received message.
                break;
            ...
        }
        // For common AuthV4 HIVE user authentication status codes, check the function below.
        checkAuthenticationState(result);
    }
});
BOOL isShow = YES;

[HIVEAuthV4 checkMaintenance:isShow handler:^(HIVEResultAPI *result, NSArray *maintenanceInfolist) {
    switch (result.code) {
        case kAuthV4NetworkError:
            // Check the device's network connection status.
            // If this error occurs even when the device network connection is normal, contact HIVE with the error message.
            break;
        case kAuthV4InvalidResponseData:
            // Contact HIVE with the received message.
            break;
            //...
    }
    // For common AuthV4 HIVE user authentication status codes, check the function below.
    [self checkAuthenticationState:result];
}];
Code Message How to solve
(Required implementation) AuthV4NetworkError Failed to communicate with the HIVE server. Check the device's network connection status. If this error occurs even when the device network connection is normal, contact HIVE with the error message.
(Required implementation) AuthV4InvalidResponseData Data that does not comply with the HIVE server communication protocol was delivered. Contact HIVE with the received message.
AuthV4NotInitialized The HIVE SDK has not been initialized. Call the AuthV4.setup API to initialize the HIVE SDK. View API
AuthV4 HIVE user authentication status code See the AuthV4 HIVE user authentication status code table. An error that can commonly occur in AuthV4 APIs was delivered. For details, see the AuthV4 HIVE user authentication status code table.

AuthV4.checkBlacklist

Boolean isShow = true;
AuthV4.checkBlacklist(isShow, (ResultAPI result, List maintenanceInfoList) =>; {
    switch(result.code) {
        case ResultAPI.Code.AuthV4NetworkError:
        // Check the device's network connection status.
        // If this error occurs even when the device network connection is normal, contact HIVE with the error message.
        break;
        case ResultAPI.Code.AuthV4InvalidResponseData:
        // Contact HIVE with the received message.
        break;
        ...
    }
    // For common AuthV4 HIVE user authentication status codes, check the function below.
    checkAuthenticationState(result);
});
bool isShow = true;
AuthV4::checkBlacklist(isShow, [](ResultAPI const & result,std::vector const & maintenanceInfolist){
    switch(result.code) {
        case ResultAPI::Code::AuthV4NetworkError:
            // Check the device's network connection status.
            // If this error occurs even when the device network connection is normal, contact HIVE with the error message.
            break;
        case ResultAPI::Code::AuthV4InvalidResponseData:
            // Contact HIVE with the received message.
            break;
            ...
    }
    // For common AuthV4 HIVE user authentication status codes, check the function below.
    checkAuthenticationState(result);
});
boolean isShow = true;
AuthV4.checkBlacklist(isShow, new AuthV4.AuthV4MaintenanceListener() {
    @Override
    public void onAuthV4Maintenance(ResultAPI result, ArrayList maintenanceInfo) {
        switch(result.code) {
            case AuthV4NetworkError:
                // Check the device's network connection status.
                // If this error occurs even when the device network connection is normal, contact HIVE with the error message.
                break;
            case AuthV4InvalidResponseData:
                // Contact HIVE with the received message.
                break;
            ...
        }
        // For common AuthV4 HIVE user authentication status codes, check the function below.
        checkAuthenticationState(result);
    }
});
BOOL isShow = YES;

[HIVEAuthV4 checkBlacklist:isShow handler:^(HIVEResultAPI *result, NSArray *maintenanceInfolist) {
    switch (result.code) {
        case kAuthV4NetworkError:
            // Check the device's network connection status.
            // If this error occurs even when the device network connection is normal, contact HIVE with the error message.
            break;
        case kAuthV4InvalidResponseData:
            // Contact HIVE with the received message.
            break;
            //...
    }
    // For common AuthV4 HIVE user authentication status codes, check the function below.
    [self checkAuthenticationState:result];
}];
Code Message How to solve
(Required implementation) AuthV4NetworkError Failed to communicate with the HIVE server. Check the device's network connection status. If this error occurs even when the device network connection is normal, contact HIVE with the error message.
(Required implementation) AuthV4InvalidResponseData Data that does not comply with the HIVE server communication protocol was delivered. Contact HIVE with the received message.
AuthV4NotInitialized The HIVE SDK has not been initialized. Call the AuthV4.setup API to initialize the HIVE SDK. View API
AuthV4 HIVE user authentication status code See the AuthV4 HIVE user authentication status code table. An error that can commonly occur in AuthV4 APIs was delivered. For details, see the AuthV4 HIVE user authentication status code table.

AuthV4.setProviderChangedListener

AuthV4.setProviderChangedListener ((ResultAPI result, AuthV4.ProviderInfo providerInfo) =>; {
    switch(result.code) {
        ...
    }
});
AuthV4::setProviderChangedListener([](ResultAPI const & result,ProviderInfo const & providerInfo){
    switch(result.code) {
            ...
    }
});
AuthV4.setProviderChangedListener(new AuthV4.AuthV4CheckProviderListener() {
    @Override
    public void onDeviceProviderInfo(ResultAPI result, AuthV4.ProviderInfo providerInfo) {
        switch(result.code) {
            ...
        }
    }
});
[HIVEAuthV4 setProviderChangedListener:^(HIVEResultAPI *result, HIVEProviderInfo *providerInfo) {
    switch(result.code) {
            //...
    }
}];
Code Message How to solve
AuthV4NotInitialized HIVE SDK is not initialized. Call the AuthV4.setup API to initialize the HIVE SDK. View API

AuthV4.getProviderFriendsList

AuthV4.ProviderType providerType = AuthV4.ProviderType.FACEBOOK;
AuthV4.getProviderFriendsList (providerType, (ResultAPI result, AuthV4.ProviderType providerType, Dictionary<String, Int64> providerUserIdList) =>; {
    switch(result.code) {
        case ResultAPI.Code.AuthV4ResponseFailGetFriendList:
        // Contact HIVE with the received message.
        break;
        /***** When ProviderType = VK *****/
        case ResultAPI.Code.AuthV4VKResponseFailGetFriends:
        // Guide the user to request the VK friend list again.
        // If the issue continues to occur, contact HIVE with the received error message.
        break;
        /***** When ProviderType = Facebook *****/
        case ResultAPI.Code.AuthV4FacebookUserCanceled:
        // Guide the user to sign in with Facebook.
        break;
        case ResultAPI.Code.AuthV4FacebookResponseFailGetFriends:
        // Guide the user to request the Facebook friend list again.
        // If the issue continues to occur, contact HIVE with the received error message.
        break;
        ...
    }
    // For common AuthV4 HIVE user authentication status codes, check the function below.
    checkAuthenticationState(result);
});
ProviderType providerType = ProviderType::FACEBOOK;
AuthV4::getProviderFriendsList(selectProviderType, [](ResultAPI const & result,ProviderType providerType,std::map<std::string,PlayerID> providerUserIdList){
    switch(result.code) {
        case ResultAPI::Code::AuthV4ResponseFailGetFriendList:
            // Contact HIVE with the received message.
            break;
            /***** When ProviderType = VK *****/
        case ResultAPI::Code::AuthV4VKResponseFailGetFriends:
            // Guide the user to request the VK friend list again.
            // If the issue continues to occur, contact HIVE with the received error message.
            break;
            /***** When ProviderType = Facebook *****/
        case ResultAPI::Code::AuthV4FacebookUserCanceled:
            // Guide the user to sign in with Facebook.
            break;
        case ResultAPI::Code::AuthV4FacebookResponseFailGetFriends:
            // Guide the user to request the Facebook friend list again.
            // If the issue continues to occur, contact HIVE with the received error message.
            break;
            ...
    }
    // For common AuthV4 HIVE user authentication status codes, check the function below.
    checkAuthenticationState(result);
});
AuthV4.ProviderType providerType = AuthV4.ProviderType.FACEBOOK;
AuthV4.getProviderFriendsList(providerType, new AuthV4.AuthV4ProviderFriendsListener() {
    @Override
    public void onGetProviderFriendsList(ResultAPI result, AuthV4.ProviderType providerType, Map<String, Long> providerUserIdList) {
        switch(result.code) {
            case AuthV4ResponseFailGetFriendList:
                // Contact HIVE with the received message.
                break;
            /***** When ProviderType = VK *****/
            case AuthV4VKResponseFailGetFriends:
                // Guide the user to request the VK friend list again.
                // If the issue continues to occur, contact HIVE with the received error message.
                break;
            /***** When ProviderType = Facebook *****/
            case AuthV4FacebookUserCanceled:
                // Guide the user to sign in with Facebook.
                break;
            case AuthV4FacebookResponseFailGetFriends:
                // Guide the user to request the Facebook friend list again.
                // If the issue continues to occur, contact HIVE with the received error message.
                break;
            ...
        }
        // For common AuthV4 HIVE user authentication status codes, check the function below.
        checkAuthenticationState(result);
    }
});
HIVEProviderType providerType = kHIVEProviderTypeFACEBOOK;

[HIVEAuthV4 getProviderFriendsList:providerType handler:^(HIVEResultAPI *result, HIVEProviderType providerType, NSDictionary *providerUserIdList) {
    switch (result.code) {
        case kAuthV4ResponseFailGetFriendList:
            // Contact HIVE with the received message.
            break;
            /***** When ProviderType = VK *****/
        case kAuthV4VKResponseFailGetFriends:
            // Guide the user to request the VK friend list again.
            // If the issue continues to occur, contact HIVE with the received error message.
            break;
            /***** When ProviderType = Facebook *****/
        case kAuthV4FacebookUserCanceled:
            // Guide the user to sign in with Facebook.
            break;
        case kAuthV4FacebookResponseFailGetFriends:
            // Guide the user to request the Facebook friend list again.
            // If the issue continues to occur, contact HIVE with the received error message.
            break;
            //...
    }
    // For common AuthV4 HIVE user authentication status codes, check the function below.
    [self checkAuthenticationState:result];
}];
Code Message How to solve
AuthV4NotInitialized HIVE SDK is not initialized. Call the AuthV4.setup API to initialize the HIVE SDK. View API
AuthV4NeedSignIn Not signed in. Call the AuthV4.helper.signIn API to sign in. View API
AuthV4InvalidProviderType Unsupported provider in HIVE. Please use a provider supported by HIVE.
AuthV4NotSupportedProviderType Unsupported provider in HIVE. Please use a provider supported by HIVE.
AuthV4NotSupportedProviderType The friend list feature is not provided for this provider. Please use a provider that offers a friend list.
AuthV4ProviderNotSupportGetFriends The friend list feature is not provided for this provider. Please use a provider that offers a friend list.
AuthV4 HIVE user authentication status code Please check the AuthV4 HIVE user authentication status code table. An error that can occur commonly with the AuthV4 API has been reported. For detailed reasons, please check the AuthV4 HIVE user authentication status code table.

Code Message How to solve

Code Message How to solve
(Required implementation) AuthV4FacebookUserCanceled [Facebook Provider] While signing in to Facebook to retrieve the Facebook friend list, sign-in failed or the user canceled sign-in. Guide the user to sign in with Facebook.
(Required implementation) AuthV4FacebookResponseFailGetFriends [Facebook Provider] The friend list could not be retrieved normally from Facebook. Guide the user to request the Facebook friend list again. If the issue continues to occur, contact HIVE with the received error message.

Code Message How to solve

Code Message How to solve

Code Message How to solve
(Required implementation) AuthV4VKResponseFailGetFriends [VK Provider] The friend list could not be retrieved normally from VK. Guide the user to request the VK friend list again. If the issue continues to occur, contact HIVE with the received error message. VK Errors
AuthV4ResponseFailGetFriendList [VK Provider] VK cannot be used because VK information is not configured in HIVE. Configure VK information in the hive_config.xml file.
AuthV4VKInvalidParamSDK [VK Provider] VK cannot be used because VK information is not configured in HIVE. Configure VK information in the hive_config.xml file.
AuthV4VKInvalidSession [VK Provider] VK cannot be used because VK information is not configured in HIVE. Guide the user to sign in with VK.

Code Message How to solve

Code Message How to solve

Code Message How to solve

AuthV4.resolveConflict

AuthV4.resolveConflict((ResultAPI result) =>; {
    switch(result.code) {
        ...
    }
});
AuthV4::resolveConflict([](ResultAPI const & result){
    switch(result.code) {
            ...
    }
});
AuthV4.resolveConflict(new AuthV4.AuthV4ResolveConflictListener() {
    @Override
    public void onAuthV4ResolveConflict(ResultAPI result) {
        switch(result.code) {
            ...
        }
    }
});
[HIVEAuthV4 resolveConflict:^(HIVEResultAPI *result) {
    switch (result.code) {
            //...
    }
}];
Code Message How to solve
AuthV4NotInitialized The HIVE SDK has not been initialized. Call the AuthV4.setup API to initialize the HIVE SDK. View API
AuthV4NeedSignIn Not signed in. Call the AuthV4.helper.signIn API to sign in. View API
AuthV4InvalidConflictInfo No account conflict has occurred. No account conflict has occurred. Call this only when an account conflict has occurred.
AuthV4InProgress An AuthV4 feature is already in progress. If the SignIn, SignOut, connect, disconnect, selectConflict, resolveConflict, showSignIn, showConflictSelection, or showAdultConfirm API is already running, duplicate API calls are not allowed. End the previous feature before calling it.

AuthV4.showGameCenterLoginCancelDialog





Code Message How to solve
No Result API

AuthV4.getAgeGateU13

Boolean ageGateU13 = AuthV4.getAgeGateU13();
bool ageGateU13 = AuthV4::getAgeGateU13();
boolean ageGateU13 = AuthV4.getAgeGateU13();
BOOL ageGateU13 = [HIVEAuthV4 getAgeGateU13];
Code Message How to solve
No Result API

AuthV4.requestPermissionViewData

AuthV4.requestPermissionViewData ((ResultAPI result, AuthV4.PermissionViewData data) =>; {
    switch(result.code) {
        case ResultAPI.Code.AuthV4SkipPermissionView:
        // Perform the actions the game must take after the permission notice.
        break;
        case ResultAPI.Code.AuthV4NetworkError:
        // Check the device's network connection status.
        // If this error occurs even when the device network connection is normal, contact HIVE with the error message.
        break;
        ...
    }
});
AuthV4::requestPermissionViewData([](ResultAPI const & result,PermissionViewData const & data){
    switch(result.code) {
        case ResultAPI::Code::AuthV4SkipPermissionView:
            // Perform the actions the game must take after the permission notice.
            break;
        case ResultAPI::Code::AuthV4NetworkError:
            // Check the device's network connection status.
            // If this error occurs even when the device network connection is normal, contact HIVE with the error message.
            break;
            ...
    }
});
Auth.requestPermissionViewData(new PermissionView.PermissionViewDataListener() {
    @Override
    public void onPermissionViewData(ResultAPI result, PermissionView.PermissionViewData data) {
        switch(result.code) {
            case AuthV4SkipPermissionView:
                // Perform the actions the game must take after the permission notice.
                break;
            case AuthV4NetworkError:
                // Check the device's network connection status.
                // If this error occurs even when the device network connection is normal, contact HIVE with the error message.
                break;
        ...
        }
    }
});
[HIVEAuthV4 requestPermissionViewData:^(HIVEResultAPI *result, HIVEPermissionViewData *data) {
    switch(result.code) {
        case kAuthV4SkipPermissionView:
            // Perform the actions the game must take after the permission notice.
            break;
        case kAuthV4NetworkError:
            // Check the device's network connection status.
            // If this error occurs even when the device network connection is normal, contact HIVE with the error message.
            break;
            //...
    }
}];
Code Message How to solve
(Required implementation) AuthV4SkipPermissionView The permission notice has already been confirmed, or the user accessed from a country where the permission notice does not need to be shown. Perform the actions the game must take after the permission notice.
(Required implementation) AuthV4NetworkError Failed to communicate with the HIVE server. Check the device's network connection status. If this error occurs even when the device network connection is normal, contact HIVE with the error message.
AuthV4InProgress The requestPermissionViewData API is already in progress. If the requestPermissionViewData API is already running, duplicate API calls are not allowed. End the previous feature before calling it.