[firebase_messaging]: Notification click if app is terminated leads to blank screen on launched app #17230
Labels
Needs Attention
This issue needs maintainer attention.
platform: macos
Issues / PRs which are specifically for MacOS.
plugin: messaging
type: bug
Something isn't working
Is there an existing issue for this?
Which plugins are affected?
Messaging
Which platforms are affected?
macOS
Description
Whenever a firebase remote notification is received with the app not running, the notification is shown in the notification center. Once the user clicks on the received notification.
Expected: the app starts normally and the message will be available in app by calling FirebaseMessaging.instance.getInitialMessage()
Actual: the app only shows a blank screen with the following error in the logs:
Reproducing the issue
Receive an remote notification an a MacOS flutter app with firebase_messaging correctly enabled while the app is terminated. Click on the notification element in MacOS. The app starts but stays blank (black screen).
Firebase Core version
3.12.1
Flutter Version
3.29.2
Relevant Log Output
Flutter dependencies
Expand
Flutter dependencies
snippetReplace this line with the contents of your `flutter pub deps -- --style=compact`.
Additional context and comments
I already located the bug and will submit a PR that fixes the error shortly.
The text was updated successfully, but these errors were encountered: