-
Notifications
You must be signed in to change notification settings - Fork 4k
🐛 [firebase_messaging] getInitialMessage() returns remoteMessage without clicking on the notification #8979
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
Labels
platform: ios
Issues / PRs which are specifically for iOS.
plugin: messaging
type: bug
Something isn't working
Comments
Thanks for the response @darshankawar. |
Thanks for confirming. Does your code use this already ? |
Yes, my code uses it already. |
/cc @russellwheatley |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
platform: ios
Issues / PRs which are specifically for iOS.
plugin: messaging
type: bug
Something isn't working
Bug report
Describe the bug
Whenever a remoteMessage is received getInitailMessage() returns the remoteMessage even if the user didn't click on the notification. It is expected to return null because the application has not been opened from a terminated state via a remoteMessage, it has been opened by clicking on the app itself.
i'm using: firebase_messaging: ^11.4.2
platform: ios
Flutter doctor
Run
flutter doctor
and paste the output below:Click To Expand
Flutter dependencies
Click To Expand
The text was updated successfully, but these errors were encountered: