My app uses a combination of tabs and a left menu for navigation which made things interesting when I tried using it on an iPhone without a hardware back button. Since the default back button implementation tracks history in tabs separate from everything else, I put together a navigation history that tracks history globally. It depends on everything being within a state (ui-router) instead of urls, but works great for my purposes. I didn’t want to try and dig out the second history stack that is there, I use that for debugging so i can see the navigation pattern of the users since going back removes the history item from the main array.
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Ion-side-menu with local navigation histories | 0 | 626 | August 10, 2015 | |
Need more control over nav bar back button | 1 | 527 | December 11, 2014 | |
Switching between ion-tabs on Android keeps a nav history when pressing the platform's back button | 4 | 1217 | August 31, 2016 | |
Enable back button when moving between ion-tabs | 0 | 803 | June 1, 2015 | |
Ionic tabs to push a page in the main view and maintain history | 1 | 500 | July 19, 2021 |