📱 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.
- Go to your Apple Developer Account
- Click "Certificates"
- Click "Keys"
- Click the "+" button
- Name the Key
- Click "Enable" on "Apple Push Notifications Service (APNs)"
- Click "Continue"
- Click "Register"
- Click "Download"
- Go to the APNs Provider Configuration
- Enter the required information
- Click "Save"
Managing APNs Tokens
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 SDK | APNs Token Management |
---|---|
iOS | Automatic |
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.
- Create a Firebase project here
- Go to Project Settings
- Click "Service Accounts"
- Click "Generate new private key"
- Copy the private key JSON
- Paste the private key JSON into the FCM Provider Configuration
- Click "Save"
Managing FCM Tokens
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 SDK | APNs Token Management |
---|---|
Android | Automatic |
Sending Customized Messages
To further customize your push notification please check out the options.apn
attribute in the send
request.