I used PushNotification library in react native. I was arrived to receive notification payload in foreground in my device with data object json .However in kill mode the object data received contain only title and soundName when i click on notification using (notification.userInteraction) .Can you help me to get data object which contain (refences key and startsation)and thinks :)
if (notification.userInteraction) {
}
if (notification.userInteraction) {
// Handle notification click
// alert('good');
alert(JSON.stringify(notification));
let notif=notification.data.aps.data;
let id=notif.id;
// alert("notificatin="+id);
}
pubnub
{"pn_apns":{
"aps":{
"alert": {
"body": "TEST",
"title": "TEST1"
},
"sound": "beep.wav",
"data": { "reference": "ND1004332", "startstation": "" }
},
"pn_push":[
{
"push_type":"alert",
"auth_method":"token",
"targets":[
{
"environment":"development",
"topic":"com.oui.fr"
}
],
"version":"v2"
}
]
}
}