-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Closed
flutter/engine
#15979Labels
impact: crowdAffects many people, though not necessarily a specific customer with an assigned label. (P2)Affects many people, though not necessarily a specific customer with an assigned label. (P2)platform: androidIssues / PRs which are specifically for Android.Issues / PRs which are specifically for Android.platform: iosIssues / PRs which are specifically for iOS.Issues / PRs which are specifically for iOS.plugin: messagingtype: bugSomething isn't workingSomething isn't working
Description
Describe the bug
The onMessage
callback is always called twice
To Reproduce
Steps to reproduce the behavior:
- Setup the plugin, do a
print
statement in theonMessage
callback - Keep the app in the foreground
- Send a FCM message
- 2 print on the console
Expected behavior
Only one print on the console
Additional context
I don' t have the same issue with onBackgroundMessage
. It's called once as expected
DamienMrtl, lkloon123, peerwaya, dhakadv06, brian2694 and 61 moredppatel03danhnguyeen and ollyde
Metadata
Metadata
Assignees
Labels
impact: crowdAffects many people, though not necessarily a specific customer with an assigned label. (P2)Affects many people, though not necessarily a specific customer with an assigned label. (P2)platform: androidIssues / PRs which are specifically for Android.Issues / PRs which are specifically for Android.platform: iosIssues / PRs which are specifically for iOS.Issues / PRs which are specifically for iOS.plugin: messagingtype: bugSomething isn't workingSomething isn't working