Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deep linking #9

Open
uberchilly opened this issue Aug 24, 2020 · 3 comments
Open

Deep linking #9

uberchilly opened this issue Aug 24, 2020 · 3 comments

Comments

@uberchilly
Copy link

uberchilly commented Aug 24, 2020

How would you deep link in this setup? I have tried to add deep link for the profile fragment similar to the basic navigation sample from jetpack repo, to see what happens and it basically just starts to the login page. I also cannot catch this intent in the MainActivity to navigate manually

@Zhuinden
Copy link
Owner

Supposedly there is a <deep-link tag but I'm not sure how to get it to work, I've read the documentation multiple times and it's super inconclusive. I think that's only for createPendingIntent(), too.

I presume the way to do it would be to use popUpTo at the root with an action in the root NavGraph. 🤔

@uberchilly
Copy link
Author

uberchilly commented Aug 24, 2020

I have managed to make deep linking work, by removing splash_graph as a start destination and by using splash_fragment. The only problem is that when you jump deeper to some screen and start to go up it really adds start destination for every nested graph on the way and splash as a root which is problematic.

@Zhuinden
Copy link
Owner

The only problem is that when you jump deeper to some screen and start to go up it really adds start destination for every nested graph on the way

That sounds like it's by design. The alternate variant https://github.com/Zhuinden/simple-stack-ftue-sample makes this easy, but that's clearly not Jetpack Nav.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants