For details about result codes, please refer to HiHealthStatusCodes.
Result codes in calling real-time APIs:
| Value | Data Definition | Typical Scenario |
|---|---|---|
| 0 | Call successful. | The execution is normal. |
| 1 | Call failed. | The Huawei Health app is not installed. |
| 2 | Parameter error. | The data list is empty when storing the blood pressure data. |
| 4 | API call 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. | 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. |
| 101 | Call 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. |
| 1001 | Privacy permission verification error. | The permission is not yet granted. A reminder needs to be sent to the user to grant the related permissions. |
| 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 for test permissions. |
| 50048 | Number of beta users before applying for verification exceeds the upper limit. | The number of users with the test scopes exceeds 100. |