Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

...

...

...


Warning
titleAndroid forground

Please note that on the Android foreground, push open will not be shown

...

Code Block
languagejs
titleadd event listener
document.addEventListener('deviceready', this.onDeviceReady, false);

Step2 - Listen to the resume event and activate it explicitly for the first time (iOS only)

Code Block
languagejs
titleadd event listener
onDeviceReady: function() {
        onResume();
        document.addEventListener("resume", onResume, false);
        app.receivedEvent('deviceready');
        console.log('Received Event: ' + id);
    },

...

Code Block
languagejs
titleadd event listener
function onResume() {
	
	MappPlugin.getLastPushPayload(function (json) {
	
					var jsonString = JSON.stringify(json);
									
					if (jsonString && jsonString.length > 2) {
									
								alert("Last Push Payload: " + jsonString); 
					}
	});
}

...


Step 4 - Send push notification from Appoxee dashboard

In the message creation wizard, insert the deep link address.