The corresponding API is HiHealthError.
| Constant Field | Value | Data Definition | Typical Scenario |
|---|---|---|---|
| 0 | Calling succeeded. | The execution is normal. | |
| 1 | Calling failed. | 1. The Huawei Health app is not installed. 2. The AIDL binding fails. | |
| 2 | Parameter error. | The input parameters are invalid. | |
| 4 | API calling error. | Communication with the Huawei Health app is interrupted. | |
| 5 | Device exception. | Failed to read the device data or the device does not support the function. | |
| 30 | Huawei Health version earlier than required. | The version of the Huawei Health app is not up to date when the new body temperature type is queried. | |
| 31 | Disconnected from the Huawei Health app. | 1. After the callback is registered for fitness data, your app is disconnected from the Huawei Health app. 2. After subscribing to daily data, your app is disconnected from the Huawei Health app. A message is displayed, prompting that re-subscription is required. | |
| 32 | HMS Core (APK) version earlier than required. | The HMS Core (APK) version is earlier than 5.1.0.300. An update to the latest version is recommended. | |
| 101 | Calling repeated. | The same model is used repeatedly to subscribe to daily data. | |
| 102 | Calling limit exceeded. | The number of models used for daily data subscription exceeds 10. | |
| 150 | Device not connected. | No device is connected. | |
| 151 | Incorrect device types selected. | The selected device type is incorrect for the workout type. | |
| 152 | Device selection canceled. | No device is selected before a user starts a workout on a device. | |
| 1001 | Permission verification error. | 1. Permissions are not yet granted. A reminder needs to be sent to the user to grant the related permissions. 2. The authorization has expired. You are advised to call silentSignIn again for re-authorization. 3. This API is called when the screen is locked. You are advised to call the API after the screen is unlocked. | |
| 1003 | App privacy agreement denied. | The user has not agreed to the privacy agreement in the Huawei Health app. | |
| 1004 | Network request failed. | Network error occurs during the authentication of test permissions. | |
| 1005 | Bluetooth not enabled. | Bluetooth is not enabled when the user attempts to connect to a Bluetooth device. | |
| 1006 | Location permission not enabled. | The location permission is not granted to the Huawei Health app when the user scans for Bluetooth devices. | |
| 1007 | Storage permission not enabled. | The storage permission is not granted to the Huawei Health app when the user stores the activity trajectory. | |
| 50048 | Number of beta users before applying for verification exceeds the upper limit. | The number of users with the test scopes exceeds 100. |