Performance: Clear Navigation Stack on Android

Savion Lee
Member Posts: 5 ✭✭
I can keep pressing my back button after closing a pane, or on future launches and the back button with keep traversing my navigation stack since the beginning of time. The navigation is never cleared.
Ways to reproduce:
- Install app on android
- Launch it and open some resources
- Within those resources, navigate using its table of contents or links
- Close some of those panes
- Close the app, swipe it away from recents
- Repeat the above steps
- At a certain point, start pressing the back button, and you will find you are going the the Navigation Stack of previous sessionz
Ways to reproduce:
- Install app on android
- Launch it and open some resources
- Within those resources, navigate using its table of contents or links
- Close some of those panes
- Close the app, swipe it away from recents
- Repeat the above steps
- At a certain point, start pressing the back button, and you will find you are going the the Navigation Stack of previous sessionz
Tagged:
1
Comments
-
I think if you close a resource, it should remove those pages from the stack.
If you open that resource back up, I suppose you can add back its navigation stack; that way it's like you didn't ever close it.
This idea of course would necessitate a data structure to persist between opens and closes.0 -
I'm still stuck on how do I exit the app. On Android, I'm used to pressing back till I get to the previously established ~Navigationstack.Current.MainPage which then another back press closes the application, and I'm back at my launcher.
I suppose you can pull up recent apps, and swipe it away like an iPad. But I'm not familiar with the differences.
Perhaps an exit button in the slide out menu or a long press of the back button.0