Push notifications
Overview
Required plan
This feature or setting is available to all customers on any Recurly Engage subscription plan.
Prerequisites & limitations
Node.js >= 14
ReadMe CLI installed
Not supported on IE11
Requires internet connection
Definition
Push prompts use device-specific endpoints to deliver notifications to users outside the app or website.
Key benefits
- Reach users off-app: Engage users even when they aren’t actively using your site or app.
- Highly targeted: Deliver notifications to specific user segments based on traits and behaviors.
- Flexible delivery: Support FCM, ADM, and APNs channels from a single interface.
Add endpoint addresses
First, upload or sync your device endpoint information to Recurly Engage via CSV or API:
-
Prepare a CSV with columns:
Id: The device endpoint identifier.ChannelType: The push service (FCM,ADM, orAPNS).Address: The device token.User.UserId: The Recurly Engage user ID.
This can be a one-time initial load. To keep endpoints up to date:
- Periodically upload updated CSVs to the S3 bucket provided by Recurly Engage.
- Or call the Device Registration API from your application.
Registration API
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, 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.
- Under Certificates, IDs & Profiles → Identifiers, select your app to view the Bundle ID.
- Under Membership Details, note your Team ID.
- Under Certificates, IDs & Profiles → Keys, create or retrieve an APNs key.
Firebase Cloud Messaging (FCM)
Required information: FCM service JSON key.
Steps:
- In Firebase Console, go to Project Settings → Service Accounts.
- Click Generate New Private Key and download the JSON file.
- Upload this JSON in the Recurly Engage console under Settings → Integrations → Push.
{
"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 Recurly Engage
Once you have your FCM JSON file or ADM/APNs credentials, upload them in the Recurly Engage console:
- Go to Settings → Integrations → Push.
- Select the channel and upload the corresponding credential file or enter key values.
- Click Save to activate push messaging for your application.
Updated 9 months ago