The common behaviour on Android when a push notification is received while the app is in the foreground is to "swallow" the notification, so it doesn't show on the notification center and doesn't play the notification sound.
Is it possible to do using the Cordova plugin? If not, how would I add this functionality using native code (ideally without overriding the plugin code so I can update it whenever I need to)?
Thanks
Comments
7 comments