Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-14144

BackButton Event Listeners do not fire on Android API 23 or below

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Not A Problem
    • Affects Version/s: cordova-android-7.0.0
    • Fix Version/s: None
    • Component/s: cordova-android
    • Labels:
      None
    • Environment:

      Description

      App exits immediately on back button press without ever firing the eventListener designed to capture and reroute it.

      There is nothing wrong with my eventListener code, it's been tested on Api 25 and higher and is very stable:
      `document.addEventListener('backbutton', this.onBackButton, false)`

      I have not yet tested to confirm if API 24 has this bug or not.

      This affects many of my users, including myself as I've got a phone running Android at these versions. The app is completely killed with every tap of the back button (new launches of the app cold boot with splashscreen) making it impossible to properly navigate the app: closing modals, moving backwards in operations, etc...

        Attachments

          Activity

            People

            • Assignee:
              bowserj Joey Robert Bowser
              Reporter:
              altShiftDev altShiftDev
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: