> If I'm reading this Google doc correctly, there are no restrictions on what
> the SyncAdapter can do. It's just a way for the application to get itself
> run in the background on some Sync schedule. Is that correct?

A SyncAdapter:

• Gets triggered by the OS at suitable intervals without having to manage 
alarms and services.
• Is manifest-linked to certain content providers, such that it can be asked to 
sync when they change without any plumbing.
• Comes with free UI in settings, including for each content provider.
• Has a set of linkages to accounts, mechanisms for error reporting, etc. (also 
part of the UI stuff).
• Has guarantees about serial execution.

Lots of avoided wheel-reinvention, along with some magic OS-level hooks.

There are no limitations on what it can actually do within that `performSync` 
method, but there's a pretty well-worn groove to follow.
_______________________________________________
Sync-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/sync-dev

Reply via email to