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

BlackBerry app crashes on startup when trying to take control of back button

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Invalid
    • 2.2.0
    • None
    • BlackBerry WebWorks SDK 2.3.1.5, BlackBerry Torch 9800 Simulator OS 6.0.0.337, Events API

    Description

      When attempting to include

      document.addEventListener("backbutton", onBack, false);

      within my onDeviceReady function, the app crashes (quits) during the loading/splashscreen phase.

      I have also tried to use the WebWorks function

      blackberry.system.event.onHardwareKey(blackberry.system.event.KEY_BACK..

      but get the same result; app crashes during loading.

      I have set the appropriate permissions in config.xml.

      Attachments

        Activity

          People

            lorin.beer Lorin Beer
            brandonbt Brandon Tooke
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: