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] onBackgroundMessage is not called on older iPhone devices. #5988
Comments
Hi @shreyansh2211
Thank you |
Hi @markusaksli-nc, Older devices are running iOS 14.4.2. Background message is handled very well in iphone se 2 , iphone 11 with same iOS version i.e. 14.4.2. Problem is in older devices only. And onBackgroundmessage is not called even when app is in background on older devices. And it is also mentioned in document that I am just communicating with other plugin i.e. callKeep and not not performing HTTP request or anything else which is not possible. If same code is working with newer devices then it should also work with older once otherwise there is some flag or setting or some other way to call onBackgroudMessage to work with older devices which i can't find in firebase documentation. Please let me know if there is something like that for older iphone devices. Thankyou. |
I'm not seeing the issue on an iPhone 7 with iOS 14.5 on Have you added |
I have added |
If you are sending through the deprecated api then it needs to be added to the payload not the notification key. For example: {
"to": token,
"notification": {
"title": "Title",
"body": "Body",
},
"data": {
"key": "value"
},
"content_available": true
} |
Hey @shreyansh2211. 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. @shreyansh2211 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. |
We are using firebase_messaging ^9.1.1 in our flutter app. onBackgroundMessage is being called in 'iPhone se' when app is in background or in terminated state. But is in not being called on iPhone 7 or iPhone 8. IOS version is same in all the devices i.e. IOS 14.4.2.
We are calling callkeep: ^0.2.3+1 plugin in onBackgroundMessage. We can't see call UI when app is terminated/in background and receive notification (iPhone 7 or iPhone 8).
This is our code:
Have anyone faced this issue or know how to fix this issue?
Expected behavior
We expect to see call screen as we are able to see on other iPhones like iPhone se and iPhone 11.
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: