Replies: 1 comment 1 reply
-
I would like that as well, for now in the background task that fire on the notification when the app was killed, i save the screen into AsyncStorage and in the app i look if a value is set and if so i navigate to it. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Edit: here is a solution in v2:
If state.index isn't set yet, you cannot call router.replace or return redirect components. If you return early for that part, you can navigate the moment the app opens and initializes.
I want to display a modal when a push notification comes in.
When the app is closed all the way, and opens up. The notification listener fires before navigation is ready.
For now this is what I have to do:
This is the only way i can ensure the app doesn't break, by importing the navigation container from the app, which seems like something that may break in a future version.
Beta Was this translation helpful? Give feedback.
All reactions