目录

Result Codes

Result Code

Value

Description

Solution

GamesStatusCodes.GAME_STATE_SUCCESS

0

Success.

-

GamesStatusCodes.GAME_STATE_FAILED

-1

Common game API failure.

-

GamesStatusCodes.GAME_STATE_ERROR

7001

Common error.

-

GamesStatusCodes.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.

GamesStatusCodes.GAME_STATE_USER_CANCEL

7003

The user cancels the operation.

Call the API again when necessary.

GamesStatusCodes.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.

GamesStatusCodes.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.

GamesStatusCodes.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.

GamesStatusCodes.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.

GamesStatusCodes.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.

GamesStatusCodes.GAME_STATE_CALL_REPEAT

7012

Repeated API call.

An API cannot be called repeatedly within 10 seconds.

GamesStatusCodes.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.

GamesStatusCodes.GAME_STATE_DISAGREE_PROTOCOL

7014

The user does not agree to the joint operations privacy agreement.

Do not allow the user to enter the game.

GamesStatusCodes.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.

GamesStatusCodes.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.

GamesStatusCodes.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.

GamesStatusCodes.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.

GamesStatusCodes.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.

GamesStatusCodes.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.

GamesStatusCodes.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.

GamesStatusCodes.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.

GamesStatusCodes.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.

GamesStatusCodes.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.

GamesStatusCodes.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.

JosStatusCodes.JOS_PRIVACY_PROTOCOL_NO_AGREE

7400

The user has not agreed to the joint operations privacy agreement.

Call the init API to instruct the user to agree on the joint operations privacy agreement.

JosStatusCodes.JOS_PRIVACY_PROTOCOL_REJECTED

7401

The user rejects the joint operations privacy agreement.

Do not allow the user to enter the game.

If the error persists, submit a ticket online. Huawei will get back to you as soon as possible.