I am using the phonegap-plugin-push plugin.
When the app running in background receiving a push, causes the notification to show in notification center on my iphone. Clicking it causes the app to open, and the push.on(‘notification’) handler code is run.
When the app is running in foreground the push.on(‘notification’) handler code is not run. The only thing i see in xcode log is didReceiveNotification with fetchCompletionHandler
Is there anyone who has seen the same thing, and knows any way to get the on(‘notification’) code to run also in foreground?
EDIT: It works as it should on Android, but not on iOS
Thanks in advance,