-
Notifications
You must be signed in to change notification settings - Fork 4k
🐛 [firebase_messaging] getInitialMessage
returns null
on iOS
#9462
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
I must say that it's working half of the time on iOS. Yesterday i could see that it's working on 1/2 notifications in I am sending push notifications from my server with the admin sdk in python. |
@Tom3652 I had also used the plugin example and verified that, in terminated state, when a notification is triggered using the |
Hey @darshankawar, it's working with the PR and also in my app (half of the time) so i don't know what else to try. I am guessing there is some race condition maybe using I will try to catch the error if there is any |
Are you using any community plugin which might be conflicting with messaging's notification ? like, Considering the fact that the behavior is not consistent everytime and the plugin example does clear the notion that all handlers actually works, maybe this has something to do with an external factor / dependency. |
I have run the example provided with the package and same problem! |
Hey @Tom3652. 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! |
Since there haven't been any recent updates here, I am going to close this issue. @Tom3652 if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this. |
Bug report
Describe the bug
I am calling
RemoteMessage? message = await FirebaseMessaging.instance.getInitialMessage();
on my app to open a specific page when the user clicks on the push notification.On Android the
message
var above is notnull
and the page is pushed.On iOS, the
message
var above isnull
when the user opens the app after touching a push notification.I am using the
firebase_messaging: 13.0.0
version.Steps to reproduce
Steps to reproduce the behavior:
terminated
Expected behavior
The method should not return null as it is done on Android when there is an actual
RemoteMessage
.Sample project
Flutter doctor
Run
flutter doctor
and paste the output below:Click To Expand
The text was updated successfully, but these errors were encountered: