dorche
01/03/2023, 2:50 PMhandleDeepLink
, back stack seems gone so now the when the user presses back after the payment flow confusingly that closes the app.dorche
01/03/2023, 2:53 PMlaunchMode
is standard
, single activity app and handleDeepLink
is not overriden at allCsaba Szugyiczki
01/04/2023, 8:11 AMNavGraph.startDestination -> DeeplinkedDestination
NavigationComponent will only include the startDestinations from nested Graphs to your DeeplinkDestination.
So if You have a hierarchy of NavGraps like this:
NavGraph1
- NavGraph2
- DeeplinkDestination
This time your backStack after calling handleDeepLink
will look like this
NavGraph1.startDestination -> NavGraph2.startDestination -> DeeplinkedDestination
Disclaimer: I have never actually tried it, I just read it a few times already and was always surprised it works like this. Source: https://medium.com/swlh/proper-back-stack-on-android-every-time-4a811f8ab78c
Otherwise I ususally handle deeplink manually and build the backStack with multiple navigation calls myself, which is not nice, but much easier than creating random nested graphs whenever the requirements for deeplinks changedorche
01/04/2023, 7:03 PM