ZPNs Error Codes
If the errorCode
field exists in the return result after calling the ZPNs interface, it indicates that the interface call has encountered an exception. Example code is as follows:
Untitled
ZPNs.getInstance().on('registered', function(message) {
console.log("[ZPNs] registered. pushID: " + message.pushID + ", error: " + message.errorCode)
});
1
Based on the operating device, the ZPNs React Native SDK will return different error codes.
iOS Error Codes
The ZPNs React Native SDK passes through the error codes and messages returned by APNs. For more details, please refer to the Apple Official Documentation.
Android
Return Code | Possible Cause and Solutions |
---|---|
0 | Success. |
6000401 | Connection failed. Check network status and retry. |
6000402 | Incorrect AppIDs or AppKeys related to device manufacturers provided. Verify the configuration for accuracy. |
6000403 | Error from calling device manufacturers' API to obtain PushID. Refer to the provided content in the error message from device manufacturers for resolution. |
6000404 | Exception or failure in Push registration for other reasons. Address the issue based on the details in the error message. |
6000405 | Exception or failure in Push unregistration for other reasons. Resolve the problem according to the information in the error message. |