In-app Chat of ZEGOCLOUD supports offline push. When you are using chat and other instant messaging functions, the persistent connection to the service backend times out and is disconnected if your application is frozen in the backend or forcibly closed by the system or users. In this case, if the offline push is configured, ZEGOCLOUD will continue to send offline push messages to the target users.
This document describes how to configure offline push certificates and enable related services in the ZEGOCLOUD Admin Console. For information about how to implement offline push on the client, see Implement offline push notification.
Before offline push certificate configuration, make sure that you have applied for corresponding certificates from the manufacturers accordingly. a. Obtain Google FCM push certificate b. Obtain Apple APNs push certificate
Log in to the ZEGOCLOUD Admin Console. In the navigation pane, choose Projects > Projects Management. On the Project Configuration page of a project, click the In-app Chat tab on Service Management, and find Offline push certificate configuration below Notification configuration.
In the lists for different manufacturers, click Add credentials to add certificates accordingly as required.
For iOS Offline Push, the option of SSL certificate type can be Production environment or Sandbox environment. You can add only one APNs certificate for each environment.
For Android Offline Push, you can add only one FCM certificate.
a. Android Offline Push You can choose to add a server key or directly upload credentials to add an FCM certificate.
b. iOS Offline Push
The option of Push Type can be APNs Push or VoIP Push.
If Push Type is set to ANPs Push, set SSL certificate type to Production environment or Sandbox environment. During upload, Bundle ID and SSL password are required.
If Push Type is set to VoIP Push, upload the corresponding certificate regardless of the environment.
VoIP Push is supported in iOS 8 and later versions. APNs Push is the general push notification service of iOS with no application scenario restrictions. However, only tones and a notification bar for display are provided, and a certain latency and loss rate exists. VoIP Push is a push system specially designed for VoIP-enabled apps, with a low latency. When push messages are received, such apps can be started for timely and smooth network voice calls.
After certificates are added, you can view the certificates in the certificate list for corresponding manufacturers. You can also delete these certificates and add new ones.