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

ion-tabs navigation behaves unexpectedly when using Android back button #7931

Closed
rjv opened this issue Aug 31, 2016 · 1 comment
Closed

ion-tabs navigation behaves unexpectedly when using Android back button #7931

rjv opened this issue Aug 31, 2016 · 1 comment

Comments

@rjv
Copy link

rjv commented Aug 31, 2016

Short description of the problem:

Navigating between tabs with the ion-tabs component adds to the overall navigation history. Pressing the Android system back button navigates (in reverse) the entire history of how the user traversed through the tabs.

What behavior are you expecting?

If viewing the root page of a tab, I would expect the app to exit when pressing the Android back button.

Steps to reproduce:

  1. Assume an Android app; root page has <ion-tabs> that contains 4 tabs and starts with tab1 (or you could use the tabs starter project).
  2. Tap on tab2, then on tab3, and finally on tab4.
  3. Press the Android system back button; observe that you are taken to tab3.
  4. Press the back button again; observe that you are taken to tab2.

Other information:

Original forum post: https://forum.ionicframework.com/t/switching-between-ion-tabs-on-android-keeps-a-nav-history-when-pressing-the-platforms-back-button/62222/1

Which Ionic Version?

2.0.0-beta.11

Run ionic info from terminal/cmd prompt:

Cordova CLI: 6.3.0
Gulp version:  CLI version 1.2.2
Gulp local:   Local version 3.9.1
Ionic Framework Version: 2.0.0-beta.11
Ionic CLI Version: 2.0.0-beta.36
Ionic App Lib Version: 2.0.0-beta.19
OS:
Node Version: v6.3.1
@jgw96
Copy link
Contributor

jgw96 commented Sep 1, 2016

Hello, thanks for opening an issue with us! I am going to be closing this issue as a duplicate of #7611. Thanks for using Ionic!

@jgw96 jgw96 closed this as completed Sep 1, 2016
@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Sep 8, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants