Result Code | Value | Description | Solution |
|---|---|---|---|
GAME_STATE_SUCCESS | 0 | Success. | - |
GAME_STATE_FAILED | -1 | Common game API failure. | - |
GAME_STATE_ERROR | 7001 | Common error. | - |
GAME_STATE_NETWORK_ERROR | 7002 | Network error or incorrect service address setting on AppGallery. | Ensure that the network is normal and that the service address setting on AppGallery is correct. |
GAME_STATE_USER_CANCEL | 7003 | The user cancels the operation. | Call the corresponding API again when necessary. |
GAME_STATE_USER_CANCEL_LOGIN | 7004 | The user cancels the sign-in. | If a user cancels sign-in, you can instruct the user to sign in again. |
GAME_STATE_PARAM_ERROR | 7005 | Incorrect input parameters. | Check the API input parameter setting. If the setting is correct but the failure persists, contact Huawei technical support. |
GAME_STATE_NO_SUPPORT | 7006 | Game Service is unavailable in the region. | Ensure that the country or region where the player is located supports Game Service. |
GAME_STATE_NOT_SUPPORT | 7010 | The current device does not support Game Service. | The current device does not support hardware registration. You can ignore this error. |
GAME_STATE_PARAM_NULL | 7011 | Empty input parameter. | Check whether the API input parameter is empty. If the parameter is empty but the failure persists, contact Huawei technical support. |
GAME_STATE_CALL_REPEAT | 7012 | Repeated API call. | An API cannot be called repeatedly within 10 seconds. |
GAME_STATE_NOT_LOGIN | 7013 | The HUAWEI ID is not signed in. | Call the authorization API of Account Kit to instruct the user to complete account authorization. |
GAME_STATE_REALNAME_REGISTER | 7016 | The user has completed identity verification. | The user has completed identity verification, and the relevant API does not need to be called again. |
GAME_STATE_REGISTER_FAIL | 7017 | Incorrect system settings (game registration failure). | Check the parameter setting. If the setting is correct but the failure persists, contact Huawei technical support. |
GAME_STATE_NOT_INIT | 7018 | The initialization API is not called. | The init API is not called. Call the init API before calling any Game Service API. |
GAME_STATE_ACCOUNT_NOT_MATCH | 7019 | The signed-in HUAWEI ID is different from that of the device. | The HUAWEI ID has been switched. Please call the authorization API of Account Kit again to instruct the user to perform authorization and sign in to your game again. |
GAME_STATE_GAME_NOT_FOUND | 7020 | No game is found when obtaining the basic game information. | No basic information about the game is found. Ensure that the game has been released on AppGallery. If the failure persists, contact Huawei technical support. |
GAME_STATE_REALNAME_CANCEL | 7021 | The user has canceled identity verification. | The user has canceled identity verification and API calling cannot continue. Please instruct the user to complete identity verification again. |
GAME_STATE_REALNAME_NOT_SUPPORT | 7022 | The real-name duration statistics function is not supported for adult users or users whose identity is not verified. | If the user has not performed identity verification, instruct the user to do so. If the user is an adult, real-name duration statistics are not required. |
GAME_STATE_CALL_FREQUENTLY | 7023 | Too frequent calls. | The API for obtaining basic player information is called too frequently. Call the API only when necessary. In other cases, you can also obtain player information from the cache. |
GAME_STATE_APPGALLERY_NOT_SUPPORT | 7024 | The AppGallery APK has not been installed, or the AppGallery version does not support this function. | Instruct the user to install or update AppGallery to the latest version. |
GAME_STATE_ACHIEVEMENT_NO_UPGRADE | 7200 | The achievement is not increased. | Check whether the achievement is an incremental achievement. If so, contact Huawei technical support. |
GAME_STATE_ACHIEVEMENT_NONEXIST | 7201 | The achievement or event is not found. | Check whether the achievement ID or event ID is the same as that created in AppGallery Connect. If so, contact Huawei technical support. |
GAME_STATE_ACHIEVEMENT_UNLOCKED | 7202 | The achievement is unlocked. | The incremental achievement increases and the achievement is unlocked. Deliver the achievement to the player. |
GAME_STATE_ACHIEVEMENT_UNLOCK_FAILED | 7203 | The achievement fails to be unlocked. | The achievement has been unlocked and cannot be unlocked again. |
GAME_STATE_ACHIEVEMENT_NOT_SUPPORT | 7204 | HUAWEI AppAssistant does not support achievement display. (The EMUI version is earlier than 10.0, HUAWEI AppAssistant is not installed, the HUAWEI AppAssistant version is earlier than 10.1, or the app has not been released.) | You can ignore the result code. The user will be instructed to install HUAWEI AppAssistant. |
GAME_STATE_RANKINGS_NOT_SUPPORT | 7205 | HUAWEI AppAssistant does not support leaderboard display. (The EMUI version is earlier than 10.0, HUAWEI AppAssistant is not installed, the HUAWEI AppAssistant version is earlier than 10.3, or the app has not been released.) | You can ignore the result code. The user will be instructed to install HUAWEI AppAssistant. |
GAME_STATE_ARCHIVE_CONFLICT_LOST | 7207 | The conflict does not exist. | Obtain the achievement list again. |
GAME_STATE_ARCHIVE_OPEN_FAILED | 7208 | An error occurred when reading the content of the archive file. | Obtain the saved game list again. |
GAME_STATE_ARCHIVE_ADD_FAILED | 7209 | Failed to create the archive. | Contact Huawei technical support. |
GAME_STATE_ARCHIVE_DIRECTORY_FAILED | 7210 | The root folder for the archive is not found or cannot be created when the archive is submitted. | Contact Huawei technical support. |
GAME_STATE_ ARCHIVE_NOT_FOUND | 7211 | The specified archive does not exist. | Check whether the archive has been deleted. You are advised to obtain the archive list again. |
GAME_STATE_ARCHIVE_NOT_SUPPORT | 7212 | HUAWEI AppAssistant does not support saved game display. (The EMUI version is earlier than 10.0, HUAWEI AppAssistant is not installed, the HUAWEI AppAssistant version is earlier than 10.3, or the app has not been released.) | You can ignore the result code. The user will be instructed to install HUAWEI AppAssistant. |
GAME_STATE_ARCHIVE_NUM_MAX_LIMIT | 7213 | The number of archives has reached the upper limit. | Delete some earlier archives, or instruct the player to manually delete some archives. |
GAME_STATE_ARCHIVE_SIZE_MAX_LIMIT | 7214 | The size of the archive image or file has reached the upper limit. | If the cover image size exceeds 200 KB, please cut the image. If the archive file size exceeds 3 MB, please change the archive file setting. |
GAME_STATE_RINGINGS_NOT_FOUND | 7215 | No leaderboard data found. | Check whether the leaderboard ID is the same as that configured in AppGallery Connect. If so, contact Huawei technical support. |
GAME_STATE_ARCHIVE_IMAGE_NOT_SUPPORT | 7216 | Unsupported archive image format. | Ensure that the archive cover image is in JPG or PNG format. |
GAME_STATE_ARCHIVE_COMMIT_CACHED | 7217 | The archive is not uploaded, but only cached locally. | The locally cached archive will be submitted to Huawei game server when the network connection is recovered. |
GAME_STATE_GAMESERVICE_AUTHOR_FAILURE | 7218 | Game Service authorization fails. The user does not agree to the AppGallery agreement. | You can ignore the result code. The AppGallery agreement will be autocratically displayed to the user for signing. |
GAME_STATE_ARCHIVE_NO_DRIVE | 7219 | The user has not enabled Drive Kit. | Instruct the user to the page (https://cloud.huawei.com/) for enabling Drive Kit and signing the Drive Kit user agreement. |
If the error persists, submit a ticket online. Huawei will get back to you as soon as possible.