Is there an existing issue for this?
Which plugins are affected?
Messaging
Which platforms are affected?
Android
Description
Hi,
I have identified an issue on the Android platform where getInitialMessage() returns null when a user taps on a notification while the app is in a terminated state.
Reproducing the issue
Steps to Reproduce:
1. Application State: The application can be in either the foreground or background state.
2. Notification Delivery: Send a notification message to the application.
3. Application Termination: Terminate the application (e.g., swipe it away from the recent apps list).
4. Notification Interaction: Tap on the notification to launch the application.
5. Actual Behavior: getInitialMessage() returns null.
Firebase Core version
2.32.0
Flutter Version
3.22.1
Relevant Log Output
2024-06-04 15:54:12.395 25962-25962 FirebaseApp com.example.flutter.app I Device unlocked: initializing all Firebase APIs for app [DEFAULT]
2024-06-04 15:54:12.483 25962-25962 FirebaseSessions com.example.flutter.app D Initializing Firebase Sessions SDK.
2024-06-04 15:54:12.513 25962-25962 FirebaseCrashlytics com.example.flutter.app I Initializing Firebase Crashlytics 18.6.3 for com.example.flutter.app
2024-06-04 15:54:12.567 25962-25962 FirebaseInitProvider com.example.flutter.app I FirebaseApp initialization successful
2024-06-04 15:54:12.700 25962-26005 FA com.example.flutter.app I App measurement initialized, version: 94007
2024-06-04 15:54:19.343 25962-26012 flutter com.example.flutter.app I �[38;5;2m│ [debug] | 15:54:19 343ms | Initial Message=null�[0m
Flutter dependencies
Expand Flutter dependencies snippet
firebase_messaging: ^14.9.4
firebase_core: ^2.32.0
firebase_analytics: ^10.10.7
firebase_crashlytics: ^3.5.7
flutter_local_notifications: ^17.1.2
Additional context and comments
No response
Is there an existing issue for this?
Which plugins are affected?
Messaging
Which platforms are affected?
Android
Description
Hi,
I have identified an issue on the Android platform where getInitialMessage() returns null when a user taps on a notification while the app is in a terminated state.
Reproducing the issue
Steps to Reproduce:
1. Application State: The application can be in either the foreground or background state.
2. Notification Delivery: Send a notification message to the application.
3. Application Termination: Terminate the application (e.g., swipe it away from the recent apps list).
4. Notification Interaction: Tap on the notification to launch the application.
5. Actual Behavior: getInitialMessage() returns null.
Firebase Core version
2.32.0
Flutter Version
3.22.1
Relevant Log Output
Flutter dependencies
Expand
Flutter dependenciessnippetAdditional context and comments
No response