question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cordova: cannot add listener for backbutton event

See original GitHub issue

Describe 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:closed
  • Created 3 years ago
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
anandtripathi5commented, Oct 4, 2020

Thanks @rstoenescu it’s working now. Thanks for the quick solution.

1reaction
rstoenescucommented, Oct 2, 2020
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found