Who needs an offline-first app
Most apps assume a stable connection and show a spinner or an error when it drops. That is acceptable for a news app. It is not acceptable for an inspector halfway through a 200-item checklist in a crawl space, a driver collecting proof of delivery, or a nurse recording a home visit. When the app fails, people fall back to paper and re-key it later, and data gets lost.
Offline-first flips the default. The device is the primary place data is written, and the server is where it eventually lands. The app is fast in every condition because it reads from local storage instead of waiting on the network.
- Field service and inspections: checklists, photos, signatures and reports on site
- Logistics and delivery: routes, scans and proof of delivery in dead zones
- Healthcare and social care: home visit notes and assessments
- Agriculture, mining and construction: remote sites with patchy or no coverage
- Retail and events: point of sale and ticket scanning that keeps going if Wi-Fi fails
The hard part: sync and conflicts
Storing data locally is easy. Getting it back to the server correctly is where offline apps succeed or fail. Two people may edit the same job while both are offline. A photo upload may fail halfway. A record may be deleted on the server while a technician is still editing it on a phone.
We decide the conflict rules with you before writing code, because they are business decisions. Some fields should take the latest edit, some should never be overwritten once submitted, and some need a person to choose. Every change is queued with a timestamp and device ID, retried with backoff, and logged so support can see exactly what happened.
| Conflict strategy | How it works | Good for |
|---|---|---|
| Last write wins | The most recent change overwrites earlier ones | Simple status fields and notes |
| Field-level merge | Changes to different fields on one record are combined | Job records edited by office and field staff |
| Append only | Records are never edited, only added | Inspections, logs, readings, audit trails |
| Manual review | Conflicts are flagged for a person to resolve | Financial values and signed documents |
Technology we use
The right stack depends on your platform and data volume. For React Native and Expo apps we typically use SQLite-based storage or WatermelonDB for larger datasets, with a sync layer to a PostgreSQL backend. For Flutter we use SQLite through Drift or a similar local database. Hosted options such as Firebase Firestore's offline persistence, PowerSync with Postgres or Supabase, and Realm-style object databases can save build time when their sync model fits your rules.
On the web, progressive web apps can work offline using service workers to cache the app shell and IndexedDB to store data. This suits office tools and kiosks, though iOS places limits on background sync, so for heavy field use we usually recommend a native or cross-platform app.
- Local database: SQLite, WatermelonDB, Drift or IndexedDB
- Sync: custom queue with idempotent APIs, or a managed sync service where it fits
- Large files: photos and video compressed on device and uploaded in resumable chunks
- Security: encrypted local storage and remote wipe for lost devices
Designing the experience for no signal
Users need to trust that their work is safe. We show a clear sync status on every record, let people see what is still waiting to upload, and never block them from moving on to the next job. Data the user will need on site, such as today's jobs, customer details, checklists and reference documents, is downloaded in advance when they are on Wi-Fi.
We test on throttled and switched-off connections, in airplane mode mid-upload, and with a device that has been offline for days, because those are the cases that break apps in production.
Cost and timeline
Offline support adds real work: a local data layer, a sync engine, conflict rules and much more testing. As a rough guide, it typically adds 20-40% to the build cost of an equivalent online-only app. A focused offline field app with forms, photos and sync commonly takes 10 to 16 weeks. Our projects are fixed price and scoped upfront, starting from $2,000 for smaller pieces of work such as adding offline mode to one part of an existing app.
How we work
- 01
Map the offline work
We list what users must do without signal, what data they need on the device, and how long they may stay offline.
- 02
Agree conflict rules
For each record type we decide how simultaneous edits are merged, overwritten or flagged for review.
- 03
Build local-first
We build the local database and screens first, then the sync queue and server APIs designed for safe retries.
- 04
Field testing
We test in airplane mode, on weak signal and with multi-day offline sessions before release.
Frequently asked questions
Can you add offline mode to an existing app?
Often, yes, but it depends on how the app stores and fetches data today. We start with a review of the data layer and estimate whether offline support can be added module by module or needs a deeper rework.
How much data can an offline app store?
Modern phones can comfortably hold thousands of records and many photos. We limit what is downloaded to what each user needs, such as their own jobs for the week, to keep sync fast and storage small.
What happens if two people edit the same record offline?
It is handled by the conflict rules we agree during planning. Depending on the field, the latest change wins, changes are merged, or the conflict is flagged for someone to resolve.
Is offline data secure if a phone is lost?
We encrypt local storage, require sign-in, and can add remote logout or data wipe. For regulated data we also limit what is kept on the device and for how long.
Can a web app work offline?
Yes, a progressive web app can cache screens and store data offline. It works well for lighter use, but native or cross-platform apps are more reliable for long offline sessions and large uploads.
Related
- App DevelopmentLearn more →
- Field Service App Development for Teams That Work Away From the OfficeLearn more →
- Cross-Platform App Development: One Codebase, Both App StoresLearn more →
- Progressive Web App Development: App Features Without the App StoreLearn more →
- Backend Development Services for Apps That Need to ScaleLearn more →