Platform
Offline Sync
Queue actions offline and sync when the device comes back online.
The client SDK queues actions (events, streak qualifications, purchases) when the device is offline and syncs them when connectivity is restored.
How it works
- When the device is offline, SDK methods queue operations locally
- When connectivity returns, the queue is flushed in order
- The server processes queued operations with conflict resolution
- Failed operations are retried with exponential backoff
Client API reference
| Method | Path | Description |
|---|---|---|
POST | /client/sync | Sync queued operations |
Sync payload
The server processes operations in order, using queued_at timestamps for proper sequencing.