🔥 messaging().getInitialNotification() returns null after opening app from a quit state #8493
Labels
blocked: customer-response
platform: android
plugin: messaging
FCM only - ( messaging() ) - do not use for Notifications
type: bug
New bug report
Issue
When opening my app from a FCM notification (while app is quit), messaging().getInitialNotification() always returns null.
Notifications are working fine in background and foreground states.
I already checked common issues:
I'm not using react-native-splash-screen (I have a custom animated splash screen with Animated component).
I'm not using Notifee.
Using a physical Android device.
Tried sending notification and data payload.
Using the correct setBackgroundMessageHandler inside a useEffect.
expo-notifications has been uninstalled.
Still, getInitialNotification() keeps returning null.
Project Files
Click To Expand
package.json
:app.json
:eas.json
:Field for send test notification
:TypeScript
?Yes
&^5.8.2
The text was updated successfully, but these errors were encountered: