Please note that on android foreground push open will not be shown |
document.addEventListener('deviceready', this.onDeviceReady, false); |
onDeviceReady: function() { onResume(); document.addEventListener("resume", onResume, false); app.receivedEvent('deviceready'); console.log('Received Event: ' + id); }, |
When application is resumed the following code will check if it was due to push notification. if so feel free to extract the relevant custom field from the payload
function onResume() { AppoxeePlugin.getLastPushPayload(function (json) { var jsonString = JSON.stringify(json); if (jsonString && jsonString.length > 2) { alert("Last Push Payload: " + jsonString); } }); } |
In the message creation wizard place the deep link address