Page 1 of 1

push handler

Posted: Sun Feb 22, 2015 7:26 pm
by bal

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?


push handler

Posted: Mon Feb 23, 2015 3:16 pm
by Evgene Karachevtsev

Hello Bal,

Sorry I'm not sure I understand you correctly, could you please clarify in what cases do you want to have a popup?