_firebaseMessagingBackgroundHandler not works on iOS only #5018
Unanswered
alexandrefett
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey,
I'm running 8..0-dev14
I have some difficulties with _firebaseMessagingBackgroundHandler on iOS.
Android works as expected, the issue is only on iOS.
Signing & capabilities > Background fetch and Remote Notifications are set.
I followed the example provided at pud.dev (8.0.0-dev14) and I'm able to receive a normal notification like this
{
"to": "token",
"content_available": true,
"apns-priority": 5,
"notification": {
"title": "title sample",
"body": "body sample",
},
"data": {
"latitude": "-9.99997"
"longitude": "11.99997"
}
}
In this case, I need to tap the notification on the tray to receive the data payload.
I not able to receive thru _firebaseMessagingBackgroundHandler(should work when app is not running) only in iOS
{
"to": "token",
"content_available": true,
"apns-priority": 5,
"data": {
"latitude": "-9.0000"
"longitude": "11.0000"
}
}
Since I'm able to receive normal notifications( with the "notification" key), I suppose my FCM config is correct.
Beta Was this translation helpful? Give feedback.
All reactions