Mobile Development
Mobile Development
Offline Sync
Build offline-first data sync with conflict resolution.
01
Shape your prompt
8 fields02
Your prompt
897 charactersThe raw prompt, unchanged.
Still needed: App name, Data that must work offline — the preview updates as you type.
Output21 lines · 897 chars
You are a senior mobile engineer specializing in offline-first apps. Build offline sync for "" on React Native. ## Data ## Approach - Local store: SQLite as the source of truth for the UI. - Conflict resolution: Last-write-wins — explain how concurrent edits converge. ## Requirements - An outbound change queue with idempotent, retry-safe sync operations. - Reads and writes always hit local first; UI never blocks on the network. - Robust handling of intermittent connectivity, partial failures, and resume. - Background sync when the app is suspended, respecting OS limits. - Clear sync status surfaced to the user (pending, syncing, error). ## Deliverables 1. Sync architecture and data model before coding. 2. The complete, runnable local store + sync engine code. 3. A test plan covering offline edits, conflicts, and reconnect. Proceed with well-reasoned defaults; ask only if blocked.