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

Accelerometer: clearWatch not stopping

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.5.0, 4.1.3
    • None
    • None
    • On my Samsung Galaxy S3, Android 4.4.4, CyanogenMod 11-2014112-snapshot-M12-d2lte

    Description

      When I start watchAcceleration like this:

      var watchId = navigator.accelerometer.watchAcceleration(callBack, handleError, { frequency: 300 });
      

      and then use clearWatch like this:

      navigator.accelerometer.clearWatch(watchId);
      

      My callBack function is still being executed at the frequency I supplied. clearWatch doesn't seem to be working

      Attachments

        Activity

          People

            Unassigned Unassigned
            franciscog Francisco Gutierrez
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: