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

Integrate APNs

For iOS devices to implement the offline push notification feature by ZIM SDK, it uses the Apple Push Notification service (APNs) and will need you to follow the steps below to apply for a certificate on Apple Developer first.

Implementation steps

  1. Sign in to Apple Developer and click Account in the top navigation bar.
  1. On the page that appears, click Certificates, IDs & Profiles.
  1. Click the plus icon "+" next to Identifiers and enter the App ID Name and Bundle ID.

    Note
    • Skip this step if the Apple ID already exists.
    • Bundle ID cannot contain any wildcard characters.
  1. Check Push Notification.
  1. Apply for a .p12 certificate.

    In the Certificates, IDs & Profiles section, click the plus icon "+" next to Certificates.

Select Apple Push Notification service SSL (Sandbox & Production) and an App ID for binding to the certificate. Then, click Continue.

Select and upload a Certificate Signing Request (CSR) file and click Continue. For information on how to obtain a CSR file, see Steps 6 and 7.

  1. Open Keychain Access on your iOS device.
  1. Choose Keychain Access > Certificate Assistant > Request a Certificate from a Certificate Authority. Enter the user's email address and a common name. Select Saved to disk and click Continue to get a .certSigningRequest file (CSR file).
  1. Upload the obtained .certSigningRequest file on the page stated in Step 5 and click Continue. Open the download page and click Download to get a .cer file. Double-click this file to install it properly in Keychain Access. As shown in the figure below, locate the certificate file and export a .p12 file.
  1. Upload the iOS certificate file:
  • Log in to the ZEGOCLOUD Admin Console, select Service Management > In-app Chat tab, and add APN's certificates in the Notification configuration session. (Select the corresponding configuration when you upload the certificate.)

At this point, you have completed the configuration of the APNs offline push notification.

Previous

Set custom push rules

Next

Implement VoIP notification

On this page

Back to top