Push message holding in system tray even if app is in foreground?


#1

Hi there,

if a push message arrives the event handler for push messages fires directly when the app is in foreground. If the app is in the background (minimized or closed) the push message is kept in the system tray. A click on the system tray message brings the app to the foreground and the event handler for arriving push messages gets fired (like above case).

What I want to do is to hold the message in the system tray even if the app is in foreground, so the event handler should got fired only when the user clicks on the tray message (like if the app would be in background). What do I need to do to tell the app to act like this?

I’m using com.phonegap.plugins.PushPlugin http://ngcordova.com/docs/plugins/pushNotifications/

Thanks :slight_smile:


#2

I solved it my self. Look for local pushs and coldstart.