-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Description
Bug Report
Problem
The 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 cordova-android@9.0.0, built via the CLI
Checklist
- I searched for existing GitHub issues
- I updated all Cordova tooling to most recent version
- I included all the necessary information above