-
-
Notifications
You must be signed in to change notification settings - Fork 468
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
Foreground notifications on iOS only show after you force quit and relaunch the app #109
Comments
Same problem |
I can repro this - will investigate and fix |
I have now tested with version 6.1.0 and can confirm that the bug has now been fixed, thanks @dpa99c. |
@dpa99c I am receiving the same issue, while the app is in the background the native notification comes but while the app is in foreground its not displaying it. Here is the code I am getting as message from onMessageReceived method:
Any help is most appreciated and thank you so much for this great plugin!! |
I'm having the same issue. |
Bug report
Current behavior:
After you accept the permission prompt on iOS and send push notifications while the app is in the foreground, the app receives the data but doesn't display a native notification. If you then force quit the app and relaunch it and while the app is in the foreground send push notifications again they do come display as native notifications.
This has been tested on test app (https://github.com/dpa99c/cordova-plugin-firebasex-test) which produces the same results.
Expected behavior:
After you accept the permission prompt on iOS and send push notifications while the app is in the foreground, you should see a native notification.
Steps to reproduce:
The payload used was as follows (device tokens have been removed):
{ "registration_ids": [ ], "notification": { "title": "Hello there", "body": "Have a great day", "sound": "default" }, "data": { "notification_foreground": "true" } }
Environment information
cordova-plugin-androidx 1.0.2 "cordova-plugin-androidx"
cordova-plugin-androidx-adapter 1.1.0 "cordova-plugin-androidx-adapter"
cordova-plugin-customfcmreceiver 1.0.0 "Custom FCM Receiver"
cordova-plugin-firebasex 6.0.6 "Google Firebase Plugin"
cordova-plugin-whitelist 1.3.4 "Whitelist"
ProductVersion: 10.14.5
BuildVersion: 18F203
Runtime issue
iOS build issue:
The text was updated successfully, but these errors were encountered: