Fixed
Status Update
Comments
il...@google.com <il...@google.com>
il...@google.com <il...@google.com>
il...@google.com <il...@google.com> #2
Navigation does indeed use the start destinations of nested graphs to build the synthetic back stack as per the stack overflow answer you linked. We've fixed the issue where deep linking to destinations within nested graphs wouldn't open to the correct destination and it'll be available in the next alpha.
[Deleted User] <[Deleted User]> #3
👍
dj...@gmail.com <dj...@gmail.com> #4
Can you please specify in what release this fix will be available? I still can reproduce this issue in 1.0.0-alpha02.
My graph even simpler than provided (Pages -> Page -> Comments), but still when I open Comments througth link I don't get desired behavoiur, instead I have this:
- On Back button press (in nav bar) activity just closes itself
- On Up button press (in app bar) it navigates to root destination
My graph even simpler than provided (Pages -> Page -> Comments), but still when I open Comments througth link I don't get desired behavoiur, instead I have this:
- On Back button press (in nav bar) activity just closes itself
- On Up button press (in app bar) it navigates to root destination
ar...@gmail.com <ar...@gmail.com> #5
The problem is still reproducing on alpha05
il...@google.com <il...@google.com> #6
Re #5 - please file a new issue with a project that reproduces your issue.
Description
Version used: 1.0.0-alpha01
Devices/Android versions reproduced on: Pixel w Oreo
Two issues for the price of one!
According to the documentation, "When a user uses the Back button from a deep link destination, they navigate back up the navigation stack just as though they entered your app from the app’s entry point." (
I have a navigation graph which looks like [Home] -> [Articles List] -> [Specific Article]
I have a deeplink to [Specific Article]
<deepLink app:uri="
However when the app is opened via deeplink (adb shell am start -W -a android.intent.action.VIEW -d "
Following advice here (
[Home] -> Group([Articles List] -> [Specific Article])
However now deeplinking does not link to [Specific Article] at all! The app opens on [Articles List] with [Home] in the backstack.
I would expect either implementation to behave as per documentation, with the app deep linking to [Specific Article] with both [Articles List] and [Home] in the backstack.
--- Sample project ---
Attached is a sample project demonstrating both issues.
The nav graph is as follows:
[Home] -> [Article List] -> [Article (has deep link)]
\---> Group([Issue List] -> [Issue (has deep link)])
To deep link use the following commands.
Deep link to article:
adb shell am start -W -a android.intent.action.VIEW -d "
Deep link to issue inside group:
adb shell am start -W -a android.intent.action.VIEW -d "