logo
In-app Chat
SDK Error Codes
Powered Byspreading
On this page

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
ZPNsEventHandler.onRegistered = (ZPNsRegisterMessage registerMessage) {
  log(registerMessage.errorCode.toString());
};
1
Copied!

Based on the operating device, the ZPNs Flutter SDK will return different error codes.

iOS Error Codes

The ZPNs Flutter SDK passes through the error codes and messages returned by APNs. For more details, please refer to the Apple Official Documentation.

Android

Return CodePossible Cause and Solutions
0Success.
6000401Connection failed. Check network status and retry.
6000402Incorrect AppIDs or AppKeys related to device manufacturers provided. Verify the configuration for accuracy.
6000403Error from calling device manufacturers' API to obtain PushID. Refer to the provided content in the error message from device manufacturers for resolution.
6000404Exception or failure in Push registration for other reasons. Address the issue based on the details in the error message.
6000405Exception or failure in Push unregistration for other reasons. Resolve the problem according to the information in the error message.

Previous

ZIM

Next

ZIM Audio