<div dir="ltr"><div>According to the documentation it's possible to decide what the notification triggers depending if the app is running or is in the background.<br><br><br>if (e.foreground) {<br></div> alert(e.alert); // whatever...<br>
<div> }<br> else { <br> if (e.coldstart) {<br> // ?<br> }<br> else {<br> // ?<br> }<br> }<br><br></div><div>Maybe I didn't understand well the scope of this, because whatever I put inside the coldstart it always triggers what is in the foreground event.<br>
<br></div><div>Thanks<br><br></div><div>M<br></div><div><br><br></div></div>