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
When the app is in the foreground, onMessage() is triggered normally, even if the payload contains notification{...}, showing only one notification, handled by Notifee. However, when using setBackgroundMessageHandler(), both the FCM notification and the Notifee notification are displayed, which is very strange. If onMessage() prevents the default FCM notification from being shown, why doesn’t setBackgroundMessageHandler() do the same?
I can't remove notification{...} because I want to receive notifications when the app is in a quit/killed state.
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
-
When the app is in the foreground, onMessage() is triggered normally, even if the payload contains notification{...}, showing only one notification, handled by Notifee. However, when using setBackgroundMessageHandler(), both the FCM notification and the Notifee notification are displayed, which is very strange. If onMessage() prevents the default FCM notification from being shown, why doesn’t setBackgroundMessageHandler() do the same?
I can't remove notification{...} because I want to receive notifications when the app is in a quit/killed state.
Beta Was this translation helpful? Give feedback.
All reactions