Cloud Services/FirefoxOS Sync: Difference between revisions

No edit summary
Line 37: Line 37:


5. The Scheduler receives the sync request.  At the next opportunity, it wakes the App with a ''sync'' message, and the App syncs the changed data.
5. The Scheduler receives the sync request.  At the next opportunity, it wakes the App with a ''sync'' message, and the App syncs the changed data.
It is quite likely that the App in question would be modifying the DataStore at some time, and therefore trigger a change event.  It might simply ignore this.  However, it could still use a one-time ''requestSync'' to allow the Scheduler to decide whether conditions were appropriate for sync.  This might be useful in cases where the App was unaware of network status or other relevant parameters (e.g., wifi availability).  (More on these below.)


== Use Cases ==
== Use Cases ==
Confirmed users
90

edits