Re: [b2g] RequestSyncAPI

2015-01-14 Thread Andrea Marchesini
There is also another important issue here: The tasks can be configured by the settings app, using the RequestSyncManager API. This means that if an app wants to do something every 20 minutes, the user can change this minInterval, or he/she can change if the task has to run only when the device

[b2g] RequestSyncAPI

2015-01-05 Thread Andrea Marchesini
Hi all, I just landed RequestSync API, an API for b2g only that allows apps to schedule tasks. Here the webIDL: https://hg.mozilla.org/integration/mozilla-inbound/file/f60d4ad64070/dom/webidl/RequestSyncScheduler.webidl A simple example is this: navigator.sync.register('foobar', {