Is there an existing issue for this?
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
Is there an existing issue for this?
Which plugins are affected?
Messaging
Which platforms are affected?
iOS
Description
FirebaseMessaging.onMessage.listenis 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