Skip to content

[firebase_messaging] onMessage/onResume is called twice on Android/iOS #1669

@woprandi

Description

@woprandi

Describe the bug
The onMessage callback is always called twice

To Reproduce
Steps to reproduce the behavior:

  1. Setup the plugin, do a print statement in the onMessage callback
  2. Keep the app in the foreground
  3. Send a FCM message
  4. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    impact: crowdAffects many people, though not necessarily a specific customer with an assigned label. (P2)platform: androidIssues / PRs which are specifically for Android.platform: iosIssues / PRs which are specifically for iOS.plugin: messagingtype: bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions