push handler
I want to show a pop up when the user receives a push message when he is busy in the app, and when the app is closed i dont want to have this pop up message? I have the following code on the push notification event on the homepage
var msg = data.aps.alert;
var retVal = confirm("Push message received." + msg + " You will be redirected to the page");
Code: Select all
if( retVal == true ){
redirectopage.execute();
return true;
}
else
{
return false;
} How to dintinguish this?