You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm having problems with notifications when the app is in the foreground.
I'm using FirebaseMessaging.onMessage.listen((RemoteMessage message) which works fine when sending messages through FCM:
{
"to": "token",
"notification": {
"title": "Test",
"body": "This is a test"
},
"data": {
"foo": "bar"
}
}
But if I use Apple's APN service using
{
"aps": {
"alert": {
"title": "Test",
"body": "This is a test"
}
},
"foo": "bar"
}
Nothing is received. This alert works fine if the app is in the background. It seems that the Firebase SDK listener is listening for some extra key in the payload. Anyone know anything about that?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey all!
I'm having problems with notifications when the app is in the foreground.
I'm using
FirebaseMessaging.onMessage.listen((RemoteMessage message)
which works fine when sending messages through FCM:But if I use Apple's APN service using
Nothing is received. This alert works fine if the app is in the background. It seems that the Firebase SDK listener is listening for some extra key in the payload. Anyone know anything about that?
Thanks! 👍
Beta Was this translation helpful? Give feedback.
All reactions