read android push notification payload
In my app I use in pushnotification event ....
var data = arguments[0].originalEvent.notification;
var msg = data.aps.alert;
var myid = data.smsid;
This works fine for iOS, sending smsid as a customitem, but on android the data.aps.alert; works fine, but the data.smsid returns undefined
smsid is sent as part of gcm payload
"data": {
"smsid": "6",
"alert": "Reminder of your Booking on Sat at 10AM"
}
what am I missing with android ??
regards
Steve