[
https://issues.apache.org/jira/browse/CB-8132?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Francisco Gutierrez updated CB-8132:
------------------------------------
Description:
When I start watchAcceleration like this:
{code}
var watchId = navigator.accelerometer.watchAcceleration(callBack, handleError,
{ frequency: 300 });
{code}
and then use clearWatch like this:
{code}
navigator.accelerometer.clearWatch(watchId);
{code}
My callBack function is still being executed at the frequency I supplied.
clearWatch doesn't seem to be working
Environment:
On my Samsung Galaxy S3, Android 4.4.4, CyanogenMod
11-2014112-snapshot-M12-d2lte
Affects Version/s: 4.1.3
3.5.0
Summary: Accelerometer: clearWatch not stopping (was: clearWatch
not stopping anything)
> Accelerometer: clearWatch not stopping
> --------------------------------------
>
> Key: CB-8132
> URL: https://issues.apache.org/jira/browse/CB-8132
> Project: Apache Cordova
> Issue Type: Bug
> Components: Plugin Device Motion
> Affects Versions: 3.5.0, 4.1.3
> Environment: On my Samsung Galaxy S3, Android 4.4.4, CyanogenMod
> 11-2014112-snapshot-M12-d2lte
> Reporter: Francisco Gutierrez
>
> When I start watchAcceleration like this:
> {code}
> var watchId = navigator.accelerometer.watchAcceleration(callBack,
> handleError, { frequency: 300 });
> {code}
> and then use clearWatch like this:
> {code}
> navigator.accelerometer.clearWatch(watchId);
> {code}
> My callBack function is still being executed at the frequency I supplied.
> clearWatch doesn't seem to be working
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]