Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

getIncoming in UrbanAirship for Phonegap

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?

like image 536
user1990478 Avatar asked Jan 18 '13 13:01

user1990478


1 Answers

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

like image 114
NaveenG Avatar answered Nov 13 '22 22:11

NaveenG