Apple push notification service

Configure Stream Video push notifications using Apple Push Notification service (APNs).

Prerequisites:

Get the iOS certificate for push notifications

  1. In Apple's Developer Portal, select Apple Push Notifications service SSL (Sandbox & Production), then click Continue.

Selecting service for push notification certificate

  1. Choose your App ID and click Continue.

  2. Create and upload a Certificate Signing Request (CSR) (instructions), then click Continue.

  3. Download the .cer file.

  4. Convert the .cer file to .p12:

    • Double-click the .cer file to add it to the login keychain
    • Open Applications > Utilities > Keychain Access
    • Select the "login" keychain
    • In the Certificates tab, right-click the certificate and export as .p12
    • Leave the password empty when exporting

Upload the certificate and create a push provider

In the Stream Dashboard, select Push Notifications:

Selecting Push Notifications menu in Stream Dashboard

Click New Configuration and select the APN provider. Configure these fields:

Field NameDescription
NameProvider identifier used in SDK/API calls
DescriptionOptional description for identifying this configuration
Bundle/Topic IDYour app's bundle ID for push notifications
TeamIDApple Team ID (found in top right of Apple developer account)
KeyIDp8 key identifier (found in keys section of Apple developer account)
.p8 Token or .p12 CertificateAuthentication token or certificate for sending push notifications

Configuration steps:

  1. Enter a name in the Name field (used in your code)
  2. Add your app's bundle ID
  3. Upload the .p12 file with the required Apple details
  4. Enable the provider using the toggle
  5. Click Create

Example configuration using voip as the name:

Screenshot shows the upload of push certificate