According to the documentation it's possible to decide what the notification triggers depending if the app is running or is in the background.


if (e.foreground) {
       alert(e.alert); // whatever...
      }
    else {  
            if (e.coldstart) {
                // ?
            }
            else {
                // ?
            }
    }

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.

Thanks

M