-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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
Ionic 2 backbutton issues with Android #7611
Comments
I am glad you brought this up. We've been building an app with ionic 2 for a while now, and have been conducting usability tests with a number of people; mostly university students who use android. Every single one of them (literally) is always confused about the behaviour of the back button. As far as my team is concerned, we see no advantage to the current behaviour since no one expects it. |
I do agree that it is bad to prevent users from closing the app, but it may have some valid use cases. For example in my app, if I'm at a certain root view and I press the back button, I want to log out instead of closing the app. At least we should be able to react to the event, if not prevent it. It would be great if we could choose a backbutton behaviour when we need to and rely on the default behaviour otherwise (#7590). |
As always, my advice is to follow the native paradigms as much as possible even if they do not make UX sense. |
I think when you traverse through tabs it should not contribute to the overall navigation history. In other words, pressing back should not take me to the "previous" tab. Each tab page should essentially be treated as the root. |
Hello @jgw96, I've an issue with the sidemenu and backbutton but not sure whether it is the same issue you're describing here, because your are talking more about the app getting closed by the backbutton. On Android, when I have the sidemenu open, the backbutton always navigates back through the stack and only closes the app when the stack is empty. In native apps the backbutton shall close the sidemenu. |
@jabas06 Yeah, that too. I had to use the following until this is fixed.
|
Can we get this issue added into a milestone please? @jgw96 @manucorporat Note this is still relevant in RC3. |
+1 to this, especially in regards to tabs history. Sidemenu closing is also a really important fix. |
@jgw96 you can put the link of the commit that fix these issues? |
@John-Luke Modal: |
This is not something we can fix, but it should be in the developer-side. If the sidemenu |
@manucorporat Sorry to grab into this closed issue. Thanks |
What if an option is provided to let developer decide if they want to close the app or suspend it when back buttons is pressed? Pressing back button on Facebook and WhatsApp doesnt close the app rather it minimize the app. |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out. |
Short description of the problem:
There are a few places where the back button behaves differently in an Ionic 2 app than in a native android app. This is a continuation of the discussion we had in our team meeting this morning.
Which Ionic Version? 2.0.0-beta.11
The text was updated successfully, but these errors were encountered: