[ 
https://issues.apache.org/jira/browse/CB-11291?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Joe Bowser updated CB-11291:
----------------------------
       Priority: Minor  (was: Major)
    Component/s:     (was: Android)

Do you have any documentation to support this? For example, which devices are 
exhibiting this behaviour?  It's well known that different versions of Android, 
and different versions of Android System WebView behave in very different ways, 
so finding this bug could be near impossible.

Also, it doesn't really make sense for the WebView to be running on the 
background this way, and I really don't see us being able to support this if 
this is in fact true.

> 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: Plugin Device Motion
>            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
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org

Reply via email to