On Android using Phonegap, when the application is launched because of a tap on a push notification, the getLaunchNotification method is always returning an empty push object. We are doing the following:
UAirship.getLaunchNotification(false,
function(push) {
alert(JSON.stringify(push));
}
);
There are two place where we are checking if the app was launched by an notification:
- the app starts (onDeviceReady)
- on resume event (onResume)
Tapping a notification push launches the app and the alert fires showing "{ }". On iOS however, the push contains a message, our extras, etc. We've copied the examples from the docs as well as tried a myriad of combinations for enabling/disabling pushes and user notifications but with no luck.
Comments
3 comments