Cordova: cannot add listener for backbutton event
See original GitHub issueDescribe the bug Backbutton event is not working for quasar version 2.0.9 version with cordova version 9.0.0.
I am using the below code
document.addEventListener(
"backbutton",
e => {
console.log("backbutton event logged")
},
false
);
There is no log inside the back button but it was working for older version
Issue Analytics
- State:
- Created 3 years ago
- Comments:12 (5 by maintainers)
Top Results From Across the Web
Cordova backbutton Event Never Firing - Stack Overflow
Try using the normal way of using cordova events. // device APIs are available // function onDeviceReady() { // Register the event listener...
Read more >backbutton - Apache Cordova
To override the default back-button behavior, register an event listener for the backbutton event, typically by calling document.addEventListener once you ...
Read more >Hardware Back Button for Capacitor & Cordova on Android ...
When listening for the ionBackButton event, you can register a handler to be fired. This handler can perform actions such as quitting the...
Read more >enflow-cordova-plugin-themeablebrowser - npm
This plugin launches an in-app web view on top the existing CordovaWebView by calling cordova.ThemeableBrowser.open() . // Keep in mind that you ...
Read more >Apache Cordova API Documentation
If you need to override the default back button behaviour you can register an event listener for the 'backbutton' event. It is no...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks @rstoenescu it’s working now. Thanks for the quick solution.
Today @anandtripathi5