[
https://issues.apache.org/jira/browse/CB-11291?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
jcesarmobile closed CB-11291.
-----------------------------
Resolution: Won't Fix
This plugin is deprecated, so it won't be fixed.
See
https://blog.phonegap.com/migrating-from-the-cordova-device-motion-plugin-ddd8176632ed
for the recommended alternative
> Update capped to 1Hz when in background
> ---------------------------------------
>
> Key: CB-11291
> URL: https://issues.apache.org/jira/browse/CB-11291
> Project: Apache Cordova
> Issue Type: Bug
> Components: cordova-plugin-device-motion (DEPRECATED)
> Reporter: Zeph Davies
> Priority: Minor
>
> Due to the way Android's WebBrowser handles setInterval, when the "tab" is in
> the background (ie when used in conjunction with backgroundMode plugin),
> setInterval (used to send the latest value to the application) is capped to
> 1Hz (once per second).
> This makes the plugin update at a completely different interval to that set
> by the application.
> One solution is to use a WebWorker to hold the setInterval timer, as it is
> not limited by the browser.
> The tricky bit is loading the script into the WebWorker, as it requires the
> "Content-Security-Policy" to allow local files or blobs.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]