-
Notifications
You must be signed in to change notification settings - Fork 283
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix receiving iOS foreground pushnotification #186
base: master
Are you sure you want to change the base?
Conversation
Fix receiving iOS foreground pushnotification
Hello @gabn88 This your commit also resolved the issue of notification click not working when the app is in the foreground for IOS 10/11? Reference link : https://stackoverflow.com/questions/46314420/phonegap-pushplugin-handling-click-event-on-notification-in-ios Thanks, |
No, it works as documented though.
There is an extra param “foreground:true” that you could use and if it is true show a modal with a button for example.
And I’m not even sure if the notification is displayed in the notification bar (on iPhone not) when the app is on the foreground.
|
Hi @gabn88 Currently, we have used this plugin phonegap-plugin-push - 2.3.1 in our project which has angular version 7 & Cordova-ios 5.1.1 (Cordova 11). Is there any way we can find a solution for it OR is there any other plugin in the market so we can check it. If you have any ideas please suggest your thoughts. Thanks, |
We also had issues with iOS foreground notifications. However, we could just take the foreground value from the plugin and show a pop up if that is the case (on iOS). |
Is this PR going to get merged in the near future? I am pretty in need of that function. |
@gabn88 I have tried your changes from your pull request. Also now it works less, then the original plugin, when I receive the push notificaiton on foreground... (see screenshot) I'll look further to this issue... (will update this comment when I have found something) |
@EenPOOL Any update from your side. I tried this fix but I don't receive push notifications when app is in the foreground. (It still breaks) |
Fix receiving iOS foreground pushnotification
Description
Now the else actually does work to show the on('notification') event
Related Issue
#172
#156
#104
Motivation and Context
To fix the foreground issue on iOS
How Has This Been Tested?
Tested in a production app for a long time (2+ years)
Screenshots (if appropriate):
Types of changes
Checklist: