All data requests in SmartSync apps are asynchronous. “Asynchronous” means that the sync method you call returns the server’s response in a callback method or update block that you define. Each sync-down or sync-up method call returns a sync state object that contains the following information:
- Sync operation ID. You can check the progress of the operation at any time by passing this ID to the sync manager’s getSyncStatus method.
- Your sync parameters (soup name, target for sync down operations, options for sync up operations).
- Type of operation (up or down).
- Progress percentage (integer, 0–100).