AshleyScirra opened a new issue #1106: URL: https://github.com/apache/cordova-android/issues/1106
# Bug Report ## Problem The [backbutton](https://cordova.apache.org/docs/en/9.x/cordova/events/events.html#backbutton) event no longer seems to work. ### What is expected to happen? Adding the "backbutton" event should cause the event handler to run when pressing the back button. ### What does actually happen? The app quits (as if there was no back button handler at all). ## Information I'm pretty sure this used to work, so it seems like it's a regression in the latest version of Cordova, or may be related to the latest version of Android or API target. ### Command or Code A trivial back button test ought to demonstrate the problem. Here's a debug APK build that demonstrates the problem in a larger example: https://www.dropbox.com/s/nuxp0nq4lqm4uyw/back%20button%20test.android.debug.apk?dl=0 Touch the orange square, then press back. It should go back to the first screen, but instead it quits the app. ### Environment, Platform, Device Tested on a Pixel 3 running Android 11 ### Version information Tested using [email protected], built via the CLI ## Checklist <!-- Please check the boxes by putting an x in the [ ] like so: [x] --> - [x] I searched for existing GitHub issues - [x] I updated all Cordova tooling to most recent version - [x] I included all the necessary information above ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
