-
Notifications
You must be signed in to change notification settings - Fork 4k
Firebase Messaging is not clearing a notification tray #553
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
Comments
The issue at flutter/flutter#25030 has been closed and moved here. Future collaboration on this issue will be done here. |
Hi @arsen |
Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. Please don't hesitate to comment on the bug if you have any more information for us; we will reopen it right away! Could everyone who still has this problem please file a new issue with the exact descriptions what happens, logs and the output of 'flutter doctor -v' please. |
I have this issue too. If I open the App directly from the App icon, the notification is not received. The notification is only received and removed when taped on the system tray. flutter doctor -v
|
@mnesarco I resolved this issue on Android with adding these lines to onCreate method in MainActivity class, and on iOS should be similiar.
Import notification manager from; |
@furkansarihan This is not a solution because the notification data never arrives to the app. This just eliminates the notification silently. The expected behaviour is that if the user open the app directly, the onLaunch or onResume must be called with the data of the pending notifications. |
@furkansarihan It will lose other notifications data if we launch the app with one notification. |
Could everyone who still has this problem please file a new issue with the exact descriptions what happens, logs and the output of 'flutter doctor -v' please. |
I think it is wanted to have a solution to clear active notifications and get their informations.
|
Hello,
With firebase_messaging plugin, after receiving the notification if you open the app directly, instead of tapping on the notification (in a tray), the notification will stay there.
If you tap on the notification it will clear itself.
I was hoping that there would be a method to clear a system tray notification (or it will do it automatically).
firebase_messaging: ^2.1.0
flutter doctor -v.
The text was updated successfully, but these errors were encountered: