I’m build an app with push notifications using the native api ionic 2 provides using ‘phonegap-plugin-push’.
I understand that when the app is in foreground I get the message send and I can do what I
want with it in my own code, and when the app is background/closed I get a push notification
immediately without the ability to change the behavior.
My question is this: if I want to show push notification when the app is in background/closed only
if the notification have a specefic payload with it, and it not do something else and not show push notification
is it possible to override the default behavior? if so how? if not any ideas how to do something similar?
thanks in advance