[firebase_messaging] Notification on click listener not always firing and sometimes notification is received twice. #6255
Unanswered
erikkubica
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
I am really desperate about this coz of deadlines in other times I would probably give more time to figure it out by myself.
I am trying to implement push notifications into our app and I have got some success after some sleepless hours caused by version mismatches (incompatible dependencies, android version targets, gradle versions,... literally took me 5 hours to get it working to receive a message) and poor documentation (from point of view of a beginner mobile developer) and lastly out of date and/or incomplete tutorials.
I have managed to receive and show a notification when app is terminated, when it runs in the background and when it's running in foreground.
But I have two issues I am trying to solve for hours:
The onNotificationClick which I assign to getInitialMessage and onMessageOpenedApp rarely executes at all when I click the notification. Feels like flutter does not know that there is a listener assigned to it.
This is the code I am working with so far (stripped down only to the necessary parts):
The received notification:
pubspec yaml
And my flutter doctor
Thank you for any help or guidance on what am I doing wrong.
Beta Was this translation helpful? Give feedback.
All reactions