Troubleshooting failed push messages on iOS

更新时间:
复制 MD 格式

Check the following items to troubleshoot failed push messages:

  • The software development kit (SDK) must be successfully initialized to receive push messages.
  • The push system only delivers messages. You must process the message data and display it as needed. For an example of how to process messages, see the official demo.
  • To listen for incoming messages, register a broadcast listener for the CCPDidReceiveMessageNotification event in the notification center. For more information, see iOS API introduction.
  • The iOS message channel is active only when the app is in the foreground. When the app switches to the background, the message channel disconnects. This means the app must be in the foreground to receive push messages.
  • When the message channel is disconnected (when the app is in the background or closed):