-
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
bug: Hardware back-button is not working with default blank template #19763
Comments
ionic-team/ionic-conference-app#707 even in ionic conference app hardware back button is not working in root page, i have just downloaded from playstore. |
bump any updates? |
Facing the same issue with ionic-react not able to exit the app any updates? |
I fixed this issue by following this link https://capacitor.ionicframework.com/docs/apis/app for Ionic React |
Hi everyone, As of Ionic Framework v5.1.0 most of the outstanding hardware back button issues have been resolved. As a result, I am going to close this issue. To better support the hardware back button integration in Ionic Framework, we launched a dedicated Hardware Back Button Documentation Page that I recommend taking a look at. If you are still running into issues with the hardware back button on the latest version of Ionic Framework, please create a new issue and include a code reproduction. Thank you! |
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. |
^^^updated description
Bug Report
Ionic version:
[x] 4.x
Current behavior:
Do we need to add something for root page in app-routing.module.ts or app.component.ts? .Hardware back button is not closing the application as it was in ionic3.
Right now i am using this in my root page to exit the application.
how can i handle like we used to in ionic 3. Suppose there is slidepage of walk-in which will be root page for new users, after that auth page will be root page then tab page will be root page.
in Ionic 3, we used setRoot to handle in that we never used this kind of hax to handle closing application. Please provide proper way to handle hardware back button.
Thank you.
Expected behavior:
it should close the app.
Steps to reproduce:
SRC : https://github.com/indraraj26/ionic4-back-button
APK: https://github.com/indraraj26/ionic4-back-button/blob/master/app-debug.apk
open below apk in android phone and try to close with back button.
Related code:
Other information:
Ionic info:
The text was updated successfully, but these errors were encountered: