-
-
Notifications
You must be signed in to change notification settings - Fork 469
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
iOS double notification while app is in the background #158
Comments
I am having the same problem, were you able to find a solution/workaround? |
Not yet. I hope plugin developers will come up with some solutions. |
This is caused because you have both
TL;DR: Don't use |
After some investigation, I've been able to handle the case where both both This means that you can now use This functionality will be merged to master and published in the next released version to npm. |
Bug report
Current behavior:
While app is in the background and foreground_notification is set to true, receive 2 notifications in status bar instead of one. This is happening only when push notification using APNS token. When push notification with firebase token, with same payload, all works fine.
Receiving 2 notification instead of one while app is in the background
I tested on exaple project, it act the same as on my project
Expected behavior:
Receive one notification while app is running in the background and when receive notification from APNS with foreground_notification key set.
Steps to reproduce:
Environment information
Runtime issue
iOS build issue:
10.15.3
10.1
Related code:
The text was updated successfully, but these errors were encountered: