-
Notifications
You must be signed in to change notification settings - Fork 4k
[firebase_messaging] onBackgroundMessage is never called in a release mode on iOS when there are two apps under one Firebase account. #9534
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
Thank you! I'll check this #9381 (comment) and come back. |
|
Ok, I think I got what's going on.
How the bug appears:
|
Thanks for further investigating. In this case, can you try by having a registration token that identifies each app instance so that you can use it to send notification that might trigger the background handler properly ? I suggest you to reach out to firebase support, because I don't think this will be actionable from client side, as, per your analysis, the background handler works properly if only one app is installed at a time. |
I'm not quite sure, what do you mean by The apps registered in the Firebase under different id's, they have different bundle names. And under Android everything works as intended, with same two app under same Firebase account. AND, most important, if we run two apps in the |
Did you get a chance to check this ? |
I'm sorry, forgot to mention, yes, we added this parameter to the payload. |
Thanks for the update. I am keeping this issue open for team's insights on this case, ie: as described here #9534 (comment) |
/cc @russellwheatley |
i have good news it works in the native side there are bug with firebase_messageing package |
More details: |
How is this issue going? |
Hey, above is happening for me too |
Hey @awaik, you said:
The background message handler will never be invoked if you dismiss the app. See documentation.
|
Bug report
This bug is connected with #9446
While for Android the bug is fixed by annotating background message handler with
@pragma('vm:entry-point')
, for iOS it doesn't fix it.Steps to reproduce
flutter build ipa
comandonBackgroundMessage
is not being called.Flutter doctor
Click To Expand
Flutter dependencies
Click To Expand
The text was updated successfully, but these errors were encountered: