Skip to content

[firebase_messaging]: FirebaseMessaging.onMessage.listen not triggered on iOS #18310

@appDevel1234

Description

@appDevel1234

Is there an existing issue for this?

  • I have searched the existing issues.

Which plugins are affected?

Messaging

Which platforms are affected?

iOS

Description

FirebaseMessaging.onMessage.listen is not triggered on iOS when a new push notification is received while the app is running in foreground. When the app is running in background, iOS displays the push notification as expected. On Android, everything works without any problems.

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.41.2, on macOS 26.2 25C56 darwin-arm64, locale de-DE)
[✓] Android toolchain - develop for Android devices (Android SDK version 36.1.0)
[✓] Xcode - develop for iOS and macOS (Xcode 26.2)

Versions: firebase_core: ^4.9.0, firebase_messaging: ^16.2.2, Flutter project was created with version 3.41.2

Does anyone have an idea what the problem is? Thanks in advance! :)

Reproducing the issue

I followed this documentation and did all required steps: https://firebase.google.com/docs/cloud-messaging/flutter/get-started

Firebase Core version

4.9.0

Flutter Version

3.41.2

Relevant Log Output

Flutter dependencies

No response

Additional context and comments

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs AttentionThis issue needs maintainer attention.type: bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions