Versions Compared

Key

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

...

When application is resumed the following code will check if it was due to push notification. if so feel free to extract the relavennt relevant custom field fro from the payload

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

...