| Class info |
| public enum ErrorEnum |
| External result code enumeration class. |
| values |
| SUCCESS Constant Value: 0 |
| ERROR_NO_TOKEN Constant Value: 907122030 No token. Apply for a token. |
| ERROR_NO_NETWORK Constant Value: 907122031 Network unavailable. Check the network connection. |
| ERROR_TOKEN_INVALID Constant Value: 907122032 Invalid token. Delete the token and apply for a new one. |
| ERROR_SERVICE_NOT_AVAILABLE Constant Value: 907122046 HUAWEI Push Kit unavailable. Contact Huawei technical support. |
| ERROR_PUSH_SERVER Constant Value: 907122047 HUAWEI Push Kit server error. Contact Huawei technical support. |
| ERROR_UNKNOWN Constant Value: 907122045 Unknown error. Contact Huawei technical support. |
| ERROR_TOPIC_EXCEED Constant Value: 907122034 The number of topics to be subscribed to exceeds the threshold (2000). |
| ERROR_TOPIC_SEND Constant Value: 907122035 Failed to send the topic subscription request. Contact Huawei technical support. |
| ERROR_NO_RIGHT Constant Value: 907122036 HUAWEI Push Kit is not enabled. Enable the service and configure service parameters in AppGallery Connect. |
| ERROR_GET_TOKEN_ERR Constant Value: 907122037 Failed to apply for the token. Contact Huawei technical support. |
ERROR_STORAGE_LOCATION_EMPTY Constant Value: 907122038 No storage location is selected for the app or the storage location is invalid. |
| ERROR_NOT_ALLOW_CROSS_APPLY Constant Value: 907122053 Failed to apply for the token. Cross-region application is not allowed. |
| ERROR_SIZE Constant Value: 907122041 The message body size exceeds the maximum (1 KB). |
| ERROR_INVALID_PARAMETERS Constant Value: 907122042 The message contains invalid parameters. |
| ERROR_TOO_MANY_MESSAGES Constant Value: 907122043 The number of messages sent reaches the upper limit, and this message will be discarded. |
| ERROR_TTL_EXCEEDED Constant Value: 907122044 The message TTL ends before the message arrives at the app server. |
| ERROR_HMS_CLIENT_API Constant Value: 907122048 HMS Core (APK) cannot connect to HUAWEI Push Kit. |
| ERROR_OPERATION_NOT_SUPPORTED Constant Value: 907122049 The EMUI version is too early and the capability is unavailable. |
| ERROR_MAIN_THREAD Constant Value: 907122050 The operation cannot be performed in the main thread. |
ERROR_HMS_DEVICE_AUTH_FAILED_SELF_MAPPING Constant Value: 907122051 Failed to authenticate the device certificate. |
ERROR_BIND_SERVICE_SELF_MAPPING Constant Value: 907122052 Failed to bind the service. |
ERROR_AUTO_INITIALIZING Constant Value: 907122054 The HMS Core Push SDK is being automatically initialized. Please try again later. |
ERROR_RETRY_LATER Constant value: 907122055 The system is busy. Please try again later. |
ERROR_SEND Constant value: 907122056 Failed to send a device group message or an uplink message. |
ERROR_DEVICE_NOT_IN_GROUP Constant value: 907122057 The device is not in the device group. |
ERROR_CACHE_SIZE_EXCEED Constant value: 907122058 The number of cached uplink messages from the app exceeds 20 (maximum). |
ERROR_MSG_CACHE Constant value: 907122059 The uplink message sent by the app is cached due to a cause such as network unavailability. |
ERROR_APP_SERVER_NOT_ONLINE Constant value: 907122060 The app server is offline. |
ERROR_OVER_FLOW_CONTROL_SIZE Constant value: 907122061 Flow control is performed because the frequency for the app to send uplink messages is too high. |
| ERROR_ARGUMENTS_INVALID Constant Value: 907135000 Incorrect input parameters. Check whether related configurations are correct. For example, check the value of app_id in the agconnect-services.json file and check whether the certificate signature is configured in the build.gradle file. |
| ERROR_INTERNAL_ERROR Constant Value: 907135001 HUAWEI Push Kit internal error. Contact Huawei technical support. |
| ERROR_NAMING_INVALID Constant Value: 907135002 The service or called API does not exist. |
| ERROR_CLIENT_API_INVALID Constant Value: 907135003 Invalid ApiClient object. |
| ERROR_EXECUTE_TIMEOUT Constant Value: 907135004 AIDL call timed out. Contact Huawei technical support. |
| ERROR_NOT_IN_SERVICE Constant Value: 907135005 This service is unavailable in this region. |
| ERROR_SESSION_INVALID Constant Value: 907135006 Invalid AIDL connection session. Contact Huawei technical support. |
| ERROR_API_NOT_SPECIFIED Constant Value: 1002 An error occurred during the call of an undesignated API. |
| ERROR_GET_SCOPE_ERROR Constant Value: 907135700 Failed to call the gateway to query the app scope. Check whether the app has been created and the service is enabled in AppGallery Connect. If the app has been created and the service is enabled, contact Huawei technical support. |
| ERROR_SCOPE_LIST_EMPTY Constant Value: 907135701 No scope is configured in AppGallery Connect. Check whether the app has been created and the service is enabled in AppGallery Connect. If the app has been created and the service is enabled, contact Huawei technical support. |
| ERROR_CERT_FINGERPRINT_EMPTY Constant Value: 907135702 No certificate fingerprint is configured in AppGallery Connect. 1. Check whether your phone has Internet access permission. 2. Check whether the correct certificate fingerprint is configured in AppGallery Connect. For details, please refer to Preparations > Configuring App Information in AppGallery Connect in the HUAWEI Push Kit Developer Guide. 3. If the fault persists, contact Huawei technical support. |
| ERROR_PERMISSION_LIST_EMPTY Constant Value: 907135703 No permission is configured in AppGallery Connect. |
| ERROR_AUTH_INFO_NOT_EXIST Constant Value: 6002 The app's authentication information does not exist. |
| ERROR_CERT_FINGERPRINT_ERROR Constant Value: 6003 Certificate fingerprint verification error. Check whether the correct certificate fingerprint is configured in AppGallery Connect. For details, please refer to Preparations > Configuring App Information in AppGallery Connect in the HUAWEI Push Kit Developer Guide. |
| ERROR_PERMISSION_NOT_EXIST Constant Value: 6004 API authentication: Permission not granted from AppGallery Connect website. |
| ERROR_PERMISSION_NOT_AUTHORIZED Constant Value: 6005 API authentication: Permission not granted. |
| ERROR_PERMISSION_EXPIRED Constant Value: 6006 API authentication: Permission expired. |