/
React Native- Payload
React Native- Payload
When it reaches the push device, use the code below to capture the relevant payload.
If you have added listeners in the token registration process, it will be sufficient to add only the 3rd line.
addEventListener('register', async (token) => {
}, (notificationPayload) => {
console.log('notification payload', notificationPayload)
}, euroMessageApi, visilabsApi)
Payload
{
"collapseKey": "com.example",
"data": {
"altUrl": "",
"deepLink": "example://Home",
"extraParam": "",
"pushId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxxxxx",
"pushType": "Image"
},
"from": "697196777607",
"messageId": "0:1591265560144592%f61cc5d1f61cc5d1",
"notification": {
"android": {
"clickAction": "http://example.com",
"imageUrl": "http://example.com/logo.png",
"sound": "default"
},
"body": "example",
"title": "example"
},
"sentTime": 1591265560130,
"ttl": 2419200
}
, multiple selections available,
Related content
React Native- Payload
React Native- Payload
More like this
React Native- Register Token
React Native- Register Token
More like this
React Native- Usage
React Native- Usage
More like this
React Native - Setup
React Native - Setup
Read with this
React Native-Read Push Notification
React Native-Read Push Notification
More like this
React Native - In App
React Native - In App
Read with this
Copyright 2020 Related Digital