Intelligent Assistant
Chat with our virtual assistant to get answers promptly.
Category | Return Code | Value | Meaning | Handling Method |
HMSAgent error codes | HMSAgent.AgentResultCode.HMSAGENT_SUCCESS | 0 | Success | - |
HMSAgent.AgentResultCode.HMSAGENT_NO_INIT | -1000 | Unable to call the init interface of HMSAgent. | Initialize HMSAgent in the onCreate interface of the application. See Client-Side Development Guide > Call the init Interface. | |
HMSAgent.AgentResultCode.NO_ACTIVITY_FOR_USE | -1001 | Unable to obtain the activity to prompt the user when the interface is called. | Check whether the activity in the manifest file is registered. | |
HMSAgent.AgentResultCode.RESULT_IS_NULL | -1002 | HMS SDK return error | Check network status and obtain logs to send to Huawei Technical Support. | |
HMSAgent.AgentResultCode.STATUS_IS_NULL | -1003 | HMS SDK return error | Check network status and obtain logs to send to Huawei Technical Support. | |
HMSAgent.AgentResultCode.START_ACTIVITY_ERROR | -1004 | Activity launch error | Check whether the activity in manifest.xml is registered. | |
HMSAgent.AgentResultCode.ON_ACTIVITY_RESULT_ERROR | -1005 | onActivityResult is not OK. The user may have canceled the call. | This error code is returned when login is canceled or a payment process is interrupted. If it is returned in other cases, obtain logs to send to Huawei Technical Support. | |
HMSAgent.AgentResultCode.REQUEST_REPEATED | -1006 | Repeated interface call | Check the logic for possible causes. Add a judgment before calling the interface to avoid repeated calls. | |
HMSAgent.AgentResultCode.APICLIENT_TIMEOUT | -1007 | HMS connection timeout | The connection to the client times out or the activity launched by the client times out. Uninstall and then reinstall the HMS app. | |
HMS framework error | ErrorCode.ARGUMENTS_INVALID | 907135000 | Passed-in parameter error | Check related configurations. For example, the APP ID in the manifest file and the certificate signature used. |
ErrorCode.INTERNAL_ERROR | 907135001 | Indicating that an internal error occurred and cannot be recovered. | Contact Huawei Technical Support for internal interface errors. | |
ErrorCode.NAMING_INVALID | 907135002 | Service unavailable. The called interface does not exist. | Check the API settings for HuaweiApiClient. | |
ErrorCode.CLIENT_API_INVALID | 907135003 | Invalid ApiClient object | If the client is empty or disconnected, check the API settings for HuaweiApiClient. | |
ErrorCode.EXECUTE_TIMEOUT | 907135004 | AIDL call timeout | This error code returns because you have called the await interface directly. Try increasing the timeout parameter value. | |
ErrorCode.NOT_IN_SERVICE | 907135005 | This service is unavailable in this region. | This service is not supported in this region. Contact Huawei Technical Support. | |
ErrorCode.SESSION_INVALID | 907135006 | Invalid AIDL connection session | Try again. If the issue persists, contact Huawei Technical Support. | |
ErrorCode.GET_SCOPE_ERROR | 907135700 | Unable to call the gateway to query the app scope. | Check if you have created this app on HUAWEI Developer and enabled related services for the app. If the issue persists, contact Huawei Technical Support. | |
ErrorCode.SCOPE_LIST_EMPTY | 907135701 | The scope of OpenGW is not configured. | Check if you have created this app on HUAWEI Developer and enabled related services for the app. If the issue persists, contact Huawei Technical Support. | |
ErrorCode.CERT_FINGERPRINT_EMPTY | 907135702 | No certificate fingerprint is configured for OpenGW. | 1. Check whether the phone has Internet access. | |
ErrorCode.PERMISSION_LIST_EMPTY | 907135703 | No permission is configured for OpenGW. | Check if you have created this app on HUAWEI Developer and enabled related services for the app. If the issue persists, contact Huawei Technical Support. | |
StatusCode.AUTH_INFO_NOT_EXIST | 6002 | The app's authentication information does not exist. | Check if you have created this app on HUAWEI Developer and enabled related services for the app. If the issue persists, contact Huawei Technical Support. | |
StatusCode.CERT_FINGERPRINT_ERROR | 6003 | Certificate fingerprint verification: Incorrect certificate fingerprint | Check the certificate fingerprint configuration on HUAWEI Developer. Log in to HUAWEI Developer and go to Console > Product Services > PUSH. Select the app to check its certificate fingerprint. On the service details page, check whether the SHA256 certificate fingerprint on the page is the same as the one you obtained. If not, modify it. | |
StatusCode.PERMISSION_NOT_EXIST | 6004 | Interface authentication: Permission not granted from HUAWEI Developer. | Check if you have created this app on HUAWEI Developer and enabled related services for the app. If the issue persists, contact Huawei Technical Support. | |
StatusCode.PERMISSION_NOT_AUTHORIZED | 6005 | Interface authentication: Permission not granted. | Check if you have created this app on HUAWEI Developer and enabled related services for the app. If the issue persists, contact Huawei Technical Support. | |
StatusCode.PERMISSION_EXPIRED | 6006 | Interface authentication: Permission expired. | Check if you have created this app on HUAWEI Developer and enabled related services for the app. If the issue persists, contact Huawei Technical Support. | |
ConnectionResult.SERVICE_MISSING | 1 | HMS is not installed on the device. | Install HMS on the device. | |
ConnectionResult.SERVICE_VERSION_UPDATE_REQUIRED | 2 | HMS installed on the device needs to be updated. | Install HMS on the device. | |
ConnectionResult.SERVICE_DISABLED | 3 | HMS installed on the device is disabled. | HMS is disabled. Enable HMS in the system settings of the device. | |
ConnectionResult.BINDFAIL_RESOLUTION_REQUIRED | 6 | AIDL association failed. | A troubleshooting dialog box will display for users if AIDL association fails. | |
ConnectionResult.INTERNAL_ERROR | 8 | Internal error | Contact Huawei Technical Support for internal interface errors. | |
ConnectionResult.SERVICE_INVALID | 9 | HMS installed on the device is not the official version. | The HMS app installed on the device may be an unofficial version. Please check the source. | |
ConnectionResult.DEVELOPER_ERROR | 10 | AIDL connection succeeded, but the AIDL handle was not obtained. This is usually caused by a configuration error. | For app configuration errors, contact Huawei Technical Support. | |
ConnectionResult.CANCELED | 13 | Cancel | The user canceled the HMS update prompt. | |
ConnectionResult.TIMEOUT | 14 | Timed out | Update package download timed out. Manually download and update HMS. | |
ConnectionResult.SERVICE_UNSUPPORTED | 21 | The device does not support HMS. | The device version does not support HMS. The Android version should be 4.0.3 or later. |