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
🐛 [firebase_messaging] getInitialMessage() returns RemoteMessage.notification only first time #9813
Comments
@shriyansh-ss
How are you sending the notification ? Can you provide logs for this behavior ? and What should be the expected response ? |
Hey @shriyansh-ss. We need more information to resolve this issue but there hasn't been an update in 7 weekdays. I'm marking the issue as stale and if there are no new updates in the next 7 days I will close it automatically. If you have more information that will help us get to the bottom of this, just add a comment! |
|
Thanks for the update. Keeping this issue open for further insights and expected behavior. |
Hello @shriyansh-ss, I can reproduce this, it's really weird I'm going to have a look into this |
Bug report
Describe the bug
Steps to reproduce
Confirm app is terminated state.
Send two messages from Firebase Console.
Open app from a notification.
getInitialMessage()
RemoteMessage.notification exists this time.
Exit the app.
Open app from another notification.
getInitialMessage().
RemoteMessage exists, but RemoteMessage.notification not exists this time.
In addition, it seems that "From", "Sent Time", and "Android Properties" cannot be obtained.
Expected behavior
getInitialMessage() should return complete notification payload, it should have "notification" key value object.
Additional context
similar issue
#9438
Flutter doctor
Run
flutter doctor
and paste the output below:Click To Expand
Flutter dependencies
Run
flutter pub deps -- --style=compact
and paste the output below:Click To Expand
The text was updated successfully, but these errors were encountered: