-
Notifications
You must be signed in to change notification settings - Fork 4k
🐛 [firebase_messaging 8.0.0-dev.11] onMessage and onBackgroundMessage don't work on iOS #4388
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
It seems you found the origin of the bug I mention at #4097. |
@markszenteTB |
Hey @markszenteTB. 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. @markszenteTB 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. |
Hello, |
@diegogarciar I agree this is a pretty big issue. What is the issue you created in Firebase_Auth, just to make it easier to track? |
It was referenced in this thread, is this one #4412 |
Uh oh!
There was an error while loading. Please reload this page.
Bug report
Describe the bug
I have experienced a two issues on iOS.
onMessage
does not get called whencontentAvailable
is set totrue
(using Firebase Functions), even when the app is in foreground.onBackgroundMessage
does not get called, ever. No matter if it's a notification, notification + data or merely data, whethercontentAvailable
istrue
orfalse
, it just doesn't. The notification appears correctly (when it's not data only), but the callback is not called.In both cases, method calls are not being called through the platform channel.
Update: having taken a deeper look at
FLTFirebaseMessagingPlugin.m
, I think it's thedidReceiveRemoteNotification
that's at fault here, for some reason not yet obvious to me. While debugging the Runner through Xcode, the following warning is displayed when receiving a notification withcontentAvailable
:Update number 2: Okay, some progress. I am now certain this is not a bug with firebase_messaging (sorry, false alarm). Rather, it is caused by firebase_auth. That package, for some reason, also handles
didReceiveRemoteNotification
in multiple files, such as inFIRAuth.m
andFLTFirebaseAuthPlugin.m
. While debugging, I deleted the method from those files, and voilà, the callbacks work as intended. However, it is far from being a fix in itself, but it may help someone more familiar with firebase_auth resolve this issue.Expected behavior
The callbacks should get called.
Additional context
Here's an excerpt from my
info.plist
: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: