BETA
Ada supports push notifications for mobile apps using either FCM (for your Android or React Native app), or APNs (for iOS).
For Ada to send push notifications to a chatter on your behalf, there must be a device token to identify the chatter. The device token behaves like an address to which FCM or APNs can deliver notifications.
Register a chatter's device
To send the device token to Ada, update your FCM or APNs client with code similar to the samples below.
iOS
Before you begin:
Include the device token in your code, as in the following example.
//Option 1
AdaWebHost(...otherOptions, deviceToken: "<YOUR_DEVICE_TOKEN>")
//Option 2
let adaFramework = AdaWebHost(...otherOptions, deviceToken: "<YOUR_DEVICE_TOKEN>")
Android
Before you begin:
In your code, pass the device token as part of the AdaSettings.
//Option 1
return settingsBuilder
// otherOptions
.deviceToken("<YOUR_DEVICE_TOKEN>")
.build()
//Option 2
val adaDialog = AdaEmbedDialog()
//your business logic
//later when you obtain a new device token
adaDialog.setDeviceToken("<YOUR_DEVICE_TOKEN>")
React Native SDK
Before you begin:
- Set up an FCM client for your React Native Android or iOS application
- Learn how to access the device token on Android or iOS
In your code, pass the device token as part of the AdaSettings.
//your business logic
//later when you obtain a new FCM device token
this.adaEmbedView.setDeviceToken("<YOUR_DEVICE_TOKEN>");