You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello community,
I have a question. I have an app that uses react native firebase and notifee. In my app notifee used only for local notifications and react native firebase for push notifications via firebase.
When I open a push notification on iOS device firebase's messaging().getInitialNotification() function returns me null all time I try to open the terminated app from notification. After a couple hours of research I found this is happening because notifee 7.0.1 handles these events.
I tried to handle notifee.getInitialNotification() method but when opens from firebase push notification it is returns already null and
after a random time called notifee.onForegroundEvent() handler. I want to know in my app opened from notification in a specific line because I should stop the flow and navigate the user to the related screen with this notification. This is all my history.
I have this questions now:
1- why notifee.getInitialNotification() returns null
2- how can I know without using notifee.onForegroundEvent() if my app opened from fcm notifiation
All of those happening on iOS devices.
packages: "react": "18.2.0",
"react-native": "0.72.5",
"@notifee/react-native": "7.0.1",
"@react-native-firebase/app": "^18.5.0",
"@react-native-firebase/messaging": "^18.5.0",
thank you.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello community,
I have a question. I have an app that uses react native firebase and notifee. In my app notifee used only for local notifications and react native firebase for push notifications via firebase.
When I open a push notification on iOS device firebase's messaging().getInitialNotification() function returns me null all time I try to open the terminated app from notification. After a couple hours of research I found this is happening because notifee 7.0.1 handles these events.
I tried to handle notifee.getInitialNotification() method but when opens from firebase push notification it is returns already null and
after a random time called notifee.onForegroundEvent() handler. I want to know in my app opened from notification in a specific line because I should stop the flow and navigate the user to the related screen with this notification. This is all my history.
I have this questions now:
1- why notifee.getInitialNotification() returns null
2- how can I know without using notifee.onForegroundEvent() if my app opened from fcm notifiation
All of those happening on iOS devices.
packages:
"react": "18.2.0",
"react-native": "0.72.5",
"@notifee/react-native": "7.0.1",
"@react-native-firebase/app": "^18.5.0",
"@react-native-firebase/messaging": "^18.5.0",
thank you.
Beta Was this translation helpful? Give feedback.
All reactions