[ 
https://issues.apache.org/jira/browse/CB-11531?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15363908#comment-15363908
 ] 

Sergey Shakhnazarov commented on CB-11531:
------------------------------------------

Mocked the acceleration values using this approach:
http://stackoverflow.com/questions/3921467/how-can-i-simulate-accelerometer-in-android-emulator/20361772#20361772

{{telnet localhost 5554}}
{{sensor set acceleration 0:0:0}}
{{sensor set acceleration 99:99:99}}

Values are being updated properly during the first {{watch}} and stops updating 
on {{clear}}/successive {{watch}}.

> Restart Accelerometer on CyanogenMod 13
> ---------------------------------------
>
>                 Key: CB-11531
>                 URL: https://issues.apache.org/jira/browse/CB-11531
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android, Plugin Device Motion
>         Environment: Nexus 4, Android 6.0.1 (CyanogenMod 13)
>            Reporter: CL
>              Labels: android, reproduced, triaged
>
> When the accelerometer is started for the first time via the 
> navigator.accelerometer.watchAccleration() function it works fine. But when 
> the accelerometer is stopped (via navigator.accelerometer.clearWatch()) and 
> then started again after a timeout the success callback is not called anymore.
> It works on a Samsung Galaxy S III with the original Android ROM installed.
> Further details about the issue can be found here: 
> https://stackoverflow.com/questions/38027898/phonegap-restart-accelerometer?noredirect=1#comment63775867_38027898



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to