Push Callbacks
Netmera provides the following push notification callbacks:
Push Register: Triggered when a device registers for push notifications.
Push Receive: Triggered when a push notification is received.
Push Open: Triggered when a user taps the notification.
Push Dismiss: Triggered when a user dismisses the notification.
Push Button Click: Triggered when a user interacts with a button inside the notification.
Carousel Object Select: Triggered when a user selects an item in a carousel notification.
To enable these callbacks in your React Native project, follow the steps below:
Step 1: Create NetmeraPushHeadlessTask.js
NetmeraPushHeadlessTask.js
Create a new file named
NetmeraPushHeadlessTask.js
in your React Native project and define the callback functions:
Step 2: Initialize NetmeraBroadcastReceiver
in index.js
NetmeraBroadcastReceiver
in index.js
In your
index.js
file, import the callback functions and initializeNetmeraBroadcastReceiver
:
Last updated
Was this helpful?