-
Notifications
You must be signed in to change notification settings - Fork 3.2k
docs(hardware-back-button): add hardware back button documentation and examples #1356
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
Conversation
|
||
## Overview | ||
|
||
By default, when a user presses the Android hardware back button, the current view will be popped off the navigation stack. If there are no views to pop, nothing will happen. This guide will show you how to customize this behavior. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add a brief summary on what the back button is before jumping into this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have https://github.com/ionic-team/ionic-docs/pull/1356/files#diff-118692f5d92350834ff00b783ab8591aR10 right after, should I move it to the top instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think something more like what the hardware back button is:
The hardware back button is found on most Android devices. In native applications it can be used to close modals, navigate to the previous view, exit an app, and more. By default in Ionic, when the back button is pressed, the current view will be popped off the navigation stack and the previous view will be displayed. If no previous views exist in the navigation stack, nothing will happen. This guide will show to customize the behavior of the hardware back button.
The hardware back button refers to the physical back button on an Android device and should not be confused with either the browser back button or
ion-back-button
. The information in this guide only applies to Android devices and is not relevant for iOS devices.
Feel free to change up my words, just threw it together.
@brandyscarney Ok I made a few changes -- lmk what you think. I changed |
blocked ionic-team/ionic-framework#20613