Skip to content

Conversation

liamdebeasi
Copy link
Contributor

@liamdebeasi liamdebeasi changed the title docs(hardware-back-button: add hardware back button documentation and examples docs(hardware-back-button): add hardware back button documentation and examples Apr 24, 2020

## 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.
Copy link
Member

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

@brandyscarney brandyscarney Apr 27, 2020

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.

@liamdebeasi
Copy link
Contributor Author

@brandyscarney Ok I made a few changes -- lmk what you think. I changed Overview to Hardware Back Button in Capacitor and Cordova -- having no heading resulted in a big block of text that was difficult to parse. Additionally, there's a Hardware Back Button in a Browser section, so I figured it made sense to have one for standalone apps.

@liamdebeasi liamdebeasi merged commit 581b5b1 into master May 7, 2020
@liamdebeasi liamdebeasi deleted the hbb-docs branch May 7, 2020 17:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants