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

Accelerometer: clearWatch not stopping

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.5.0, 4.1.3
    • Fix Version/s: None
    • Labels:
      None
    • Environment:

      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

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

              Dates

              • Created:
                Updated:
                Resolved: