Push notifications
How to configure push notification endpoints and credentials for Recurly Engage.
Prerequisites
- You must have Company or App Administrator permissions in Engage.
Definition
Key benefits
Add endpoint addresses
First, upload or sync your device endpoint information to Engage via a comma-separated values (CSV) file or API. Prepare a CSV with these columns:
| Column | Description |
Id | The device endpoint identifier. |
ChannelType | The push service (FCM, ADM, or APNS). |
Address | The device token. |
User.UserId | The Engage user ID. |
This can be a one-time initial load. To keep endpoints up to date, choose one of these options:
- Periodically upload updated CSVs to the S3 bucket provided by Engage.
- Call the Device Registration API from your application.
Registration API
[TODO: Dev/PO review — possible issue: the example uses "channel_type": "GCM", while the CSV ChannelType values listed above are FCM, ADM, and APNS.]
POST <base_url>/ingest/update_push_endpoint
Headers:
Rf-App: <app_slug>
User-Id: <user_id>
Content-Type: application/json
Body:
{
"token": "4d5e6f1a2b3c4d5e6f7g8h9i0j1a2b3c",
"channel_type": "GCM",
"endpoint_id": "eqmj8wpxszeqy/b3vch04sn41yw"
}
Amazon Device Messaging (ADM)
Required information: ADM Client ID and ADM Client Secret.
Follow Amazon’s credential guide: Obtain ADM Credentials.
Apple Push Notification service (APNs)
Required information:
Apple Push Notifications Service Bundle IDApple Push Notifications Service Team IDApple Push Notifications Service Token KeyApple Push Notifications Service Token Key ID
Steps:
Log in to Apple Developer
Log in to Apple Developer.
Firebase Cloud Messaging (FCM)
Required information: FCM service JSON key.
Steps:
Open Service Accounts
In Firebase Console, go to Project Settings → Service Accounts.
The downloaded JSON file has this structure:
{
"type": "service_account",
"project_id": "PROJECT_ID",
"private_key_id": "PRIVATE_KEY_ID",
"private_key": "PRIVATE_KEY",
"client_email": "FIREBASE_ADMIN_SDK_EMAIL",
"client_id": "CLIENT_ID",
"auth_uri": "https://accounts.google.com/o/oauth2/auth",
"token_uri": "https://oauth2.googleapis.com/token",
"auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
"client_x509_cert_url": "CLIENT_X509_CERT_URL"
}Upload file to Engage
Once you have your FCM JSON file or your ADM or APNs credentials, upload them in the Engage console:
Updated 4 days ago