Skip to main content

📱 Setup Mobile Push

NotificationAPI supports Apple Push Notifications Service (APNs) and Firebase Cloud Messaging (FCM) Push Providers. Each provider has different requirements that need to be met to deliver a message to a recipient.

Apple Push Notifications Service (APNs)

Setup

To send a push notification to your mobile app on an Apple device, we need some credentials from your Apple Developer account. Below are the required steps to generate and save APNs credentials.

  1. Go to your Apple Developer Account
  2. Click "Certificates"
  3. Click "Keys"
  4. Click the "+" button
  5. Name the Key
  6. Click "Enable" on "Apple Push Notifications Service (APNs)"
  7. Click "Continue"
  8. Click "Register"
  9. Click "Download"
  10. Go to the APNs Provider Configuration
  11. Enter the required information
  12. Click "Save"

Managing APNs Tokens

Sending push notifications to an Apple device requires generating a special token on the device that is referred to as an APNs token or device token.

NotificationAPI Mobile SDKs automatically manage and sync APNs tokens with NotificationAPI servers, so you don't have to. This allows you to send push notifications directly to a user from your back-end, rather than worrying about generating, storing and retrieving the APNs token.

Mobile SDKAPNs Token Management
iOSAutomatic

Firebase Cloud Messaging (FCM)

Setup

To send a push notification to your mobile app on an Android device, we need some credentials from your Firebase Cloud Messaging account. Below are the required steps to generate and save FCM credentials.

  1. Create a Firebase project here
  2. Go to Project Settings
  3. Click "Service Accounts"
  4. Click "Generate new private key"
  5. Copy the private key JSON
  6. Paste the private key JSON into the FCM Provider Configuration
  7. Click "Save"

Managing FCM Tokens

Sending push notifications to an Android device requires generating a special token on the device that is referred to as a FCM token or device token.

NotificationAPI Mobile SDKs automatically manage and sync FCM tokens with NotificationAPI servers, so you don't have to. This allows you to send push notifications directly to a userId from your back-end, rather than worrying about generating, storing and retrieving the FCM token.

Mobile SDKAPNs Token Management
AndroidAutomatic

Sending Customized Messages

To further customize your push notification please check out the options.apn attribute in the send request.