When I receive a push notification on my phone when my app is minimized, if I click on the notification to launch my app, calling
window.pushNotification.getIncoming( callback )
returns {"message":"","extras":{}}
rather than the data for the notification I clicked.
Is this correct behavior? If so is there a way to get the information I want?
Use below code for PhoneGap push notification
window.LocalNotification.add({ message : "hello", ticker : "New Notification", repeatDaily : false, id : 4 }, newNotification); function newNotification(e) { if (e != null && e.event == "newLocalNotification") { // add my Appointment page window.location = "#redirectPageId"; }
}
Use "redirectPageId" for redirect page
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With