Push service certificates

You can send push notifications to iOS devices using either Apple’s Push Notification service (APNs) or Google’s Firebase Cloud Messaging (FCM) service.

To authorize your Customer.io workspace to send notifications through APNs, you’ll need to upload your APNs .p8 certificate and provide your credentials or upload your .JSON to iOS devices over Apple’s Push Notification service, you’ll need to upload your APNs .p8 certificate and enter your Apple Developer Key ID, Team ID, and Bundle ID.

Upload your push certificate

If you don’t already have your .p8 certificate for APNs or your .JSON file for FCM, you’ll need to get one before you can finish this process and send push notifications.

  1. In Customer.io, go to your workspace’s Settings > Workspace Settings and click Settings next to Push.

  2. Click Enable under iOS, and select the Apple Push Notification service (APNs) option.

  3. Click Choose file… and upload your .p8 certificate.

  4. Enter your Key ID, Team ID, and Bundle ID. You can find these in your Apple Developer Account.

  5. (Optional) Enable the Send all push notifications to sandbox option.

    Your iOS certificate may have both sandbox and production environments; this option sends push notifications to both environments.

    image.png
    image.png

     We recommend creating a separate workspace for your sandbox environment.

  6. Click Save Changes

Push Settings - iOS_provider (APNs)
Push Settings - iOS_provider (APNs)
  1. In Customer.io, go to Settings > Workspace Settings and click Settings next to Push.

  2. For iOS, click Enable, and select the Firebase Cloud Messaging (FCM) option.

Push Settings - iOS_provider (FCM)
Push Settings - iOS_provider (FCM)

Get your .p8 file for APNs

  1. Log into your Apple Developer account and go to Certificates, Identifiers & Profiles > Keys. Click the blue button to create a new key.
  2. Click Apple Push Notifications service (APNs) and enter a name for the key.
  3. Click Continue and then Register to create the key.
  4. Download your keys and put it somewhere you’ll remember. You can only download your key once!

Get your .JSON file for FCM

Before you can get a push certificate for Firebase Cloud Messaging, make sure that the FCM API is enabled for your project. You can check that here.

  1. Log into the Firebase Console for your project.

  2. Click in the sidebar and go to Project settings.

    Access your project settings in firebase
    Access your project settings in firebase

  3. Go to Service Accounts and click Generate New Private Key. Confirm your choice and download the credential file.

    Generate a new private key in Firebase
    Generate a new private key in Firebase

Copied to clipboard!
  Contents
Current release
 3.3.0
Is this page helpful?
Chat with AI