phonegap / phonegap-plugin-push

Register and receive push notifications
MIT License
1.94k stars 1.91k forks source link

Issue with notification when app in foreground #2821

Open gmurt opened 5 years ago

gmurt commented 5 years ago

I've updated the push plugin to 2.3.0 to fix the token change on iOS 13.

This update fixes the issue with the iOS tokens, but now the app doesn't receive notifications when it's running in the foreground.

In the XCode console, I only see the following line and nothing else...

2019-09-21 12:13:25.127272+0100 MyApp[794:164476] didReceiveNotification with fetchCompletionHandler

So it looks like the device is being notified, But no code is run in the app. Any ideas?

kyoz commented 4 years ago

Have the same issue, after a day figure out how to setup for it work. I realize it just work on background not in foreground. Any one have any ideas on this ?