How can I implement React Navigation's deep linking using messaging().getInitialNotification()? #7469
Labels
help: needs-triage
Issue needs additional investigation/triaging.
type: bug
New bug report
Type: Stale
Issue has become stale - automatically added by Stale bot
Since version 7.0.0 of Notifee, messaging().getInitialNotification() from React Native Firebase no longer triggers.
https://notifee.app/react-native/docs/release-notes#700
However, according to the React Navigation deep linking guide,
you should use
getInitialURL
as follows:https://reactnavigation.org/docs/deep-linking/#third-party-integrationsnotes
In Notifee version 6.0.0, you can follow the guide mentioned above.
However, in Notifee version 7.0.0, instead of
messaging().getInitialNotification()
, you should useonForegroundEvent
.https://notifee.app/react-native/docs/ios/remote-notification-support#handling-events
The challenge is in obtaining the
detail.notification
data fromonForegroundEvent
and passing it togetInitialURL
. Unfortunately, you're having trouble finding a solution, and you've resorted to downgrading to Notifee version 6.0.0.Is there a better solution available, or can you provide guidance on how to retrieve the
detail.notification
data fromonForegroundEvent
and pass it togetInitialURL
in Notifee version 7.0.0? Any assistance in resolving this issue would be greatly appreciated.This article was translated by chat gpt.
The text was updated successfully, but these errors were encountered: