bal
Posts: 0
Joined: Sat Nov 22, 2014 8:04 pm

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?

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

push handler

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?

Return to “Issues”