Offline-first apps: when you need one and what it costs

An offline-first app saves to the phone first and syncs later. You need one for field, site or warehouse work with poor signal. What it adds to a build.

By Sohail Hussain21 November 20266 min read

You need an offline-first app when your users must do their main job where the signal is poor or absent, and losing their work or waiting for a connection is not acceptable: field service and inspections, warehouses and stock counts, construction sites, deliveries with proof of drop-off, farms, rural healthcare, flights. An offline-first app saves everything to a database on the phone first and synchronises with the server whenever a connection is available. It costs more than an online app, typically 100 to 250 extra hours for the sync and conflict handling as of October 2026, and it has to be designed in from the start. Most consumer apps, such as shopping, booking or social apps, do not need it: they need a live connection anyway to show prices, availability and other people's activity.

What does offline-first actually mean?

In an ordinary app, the server is where data lives, and the screen asks the server every time. With no signal, the screen shows an error.

In an offline-first app, the database on the phone is what every screen reads and writes. A sync process, running in the background, sends local changes to the server and brings down changes made by others. Google's guide to building an offline-first app describes the same model: the local data source is the source of truth for the app's screens, and only the data layer talks to the network.

There are levels in between, and most apps need one of those rather than the full model:

LevelWhat works without a signalTypical extra effort
Online onlyNothing; a clear "no connection" messageNone
Cached readsRecently viewed screens and data open read-onlySmall
Queued writesThe user can submit forms; they send when back onlineModerate
Offline-first with syncEverything in the user's scope, for hours or days, including edits100 to 250 hours on top of the build

The figures are consistent with the feature costs in how much a mobile app costs. Our app cost calculator includes "offline mode and sync" as a separate line, so you can see the difference it makes to your range.

Who actually needs offline-first?

Ask two questions: will users be without a signal while doing their core task, and what happens if they cannot complete it?

Yes to both: a technician filling in an inspection checklist in a basement plant room, a picker counting stock in a steel warehouse, a driver capturing a signature at a rural drop-off, a surveyor on a farm. If the app fails there, the work is lost or done twice on paper. These are the apps we design offline-first on our mobile app development projects.

Signal problems, but low stakes: a customer browsing a catalogue on the metro. Cached reads are enough; they will buy when the signal returns.

Needs a live connection anyway: booking a slot, paying, checking stock, chatting. Offline-first adds cost without helping, because the action cannot be completed without the server. Show a clear message and keep the user's input so nothing is lost.

If your answer is "it would be nice", it is the second or third case.

What makes offline sync hard?

The sync is where the hours go. Saving data on the phone is easy; agreeing with the server about what happened is not.

  • Conflicts. Two technicians edit the same job while both are offline. When they reconnect, which version wins?
  • Deletes. A record deleted on one phone must disappear everywhere, including on a phone that edited it in the meantime.
  • Identity. Records created offline need IDs before the server has seen them, so the app must generate globally unique IDs on the device.
  • Scope. Each user needs the subset of data they are allowed to see, small enough to fit on a phone, and that subset changes when their permissions change.
  • Schema changes. When you release a new version with a changed data model, phones still holding old, unsynced data must migrate it safely.
  • Background limits. Phones restrict background work to save battery. Android's WorkManager schedules sync when the network is available; on iOS, background tasks run when the system allows, not on a timer you control. Sync reliably on app open and when connectivity returns, and treat background sync as a bonus.
  • Large files. Photos and documents upload separately, after the data, with retries.

How do apps resolve conflicts?

Pick a rule per type of data, write it down, and test it. The common options:

StrategyHow it worksGood for
Last write winsThe most recent change overwrites, by timestampSimple settings, records one person owns
Field-level mergeChanges to different fields both survive; same-field conflicts use a ruleForms edited by several people
Server decides, flags for reviewConflicting edits go to a queue for a person to resolveMoney, stock levels, anything audited
Append onlyNothing is overwritten; every change is a new entryLogs, readings, inspection results, stock movements
CRDTsData structures designed to merge automaticallyCollaborative text and lists; complex to adopt

Append-only is the most underused. If a stock count is recorded as "counted 40 at 10:02 by device A" rather than "quantity = 40", two offline counts never overwrite each other; the server works out the total.

What tools do offline-first apps use?

The local database is usually SQLite, on both platforms, through a library such as expo-sqlite in React Native apps or Room on Android. On top of it you either build your own sync API, or adopt a sync engine that handles change tracking and conflict rules for you. Firebase's Firestore caches data and queues writes offline out of the box, which covers the middle levels in the table above. Dedicated sync products, such as PowerSync or Couchbase Lite, aim at the full model with your own backend database.

Choose a vendor for the long term with care. Sync engines are deep dependencies, and switching is a rewrite of the data layer. MongoDB's deprecation of Atlas Device Sync, announced in 2024 with an end-of-life date in September 2025, left apps built on it needing a new sync approach. Prefer tools whose local data is plain SQLite and whose server side you could replace.

What does offline-first add to the cost and timeline?

As of October 2026, plan on 100 to 250 extra hours for full offline-first with sync in a cross-platform app, which adds several weeks to the timeline in how long it takes to build an app. The range depends on how many data types sync, how many users share records, and which conflict rules you need. Testing takes a large share: every flow must be tried offline, online, and with the connection dropping halfway through.

Maintenance rises too. Every future change to the data model needs a migration that works on phones carrying unsynced changes. Add that to the yearly budget in app maintenance.

Decide before design starts, and write it into the mobile app brief: which screens must work offline, for how long, and what happens when two people change the same thing. The mobile app development guide lists offline as one of the decisions that cannot be added cheaply later, and this is why.

Was this guide useful?

Questions

Frequently asked.

Can offline support be added to an app later?

A little can: caching screens so they open without a signal is a modest change. Full offline editing with sync usually cannot be added cheaply, because it changes where data lives, how records are identified and how every screen saves. If you might need it within a year or two, design the data layer for it from the start, even if the first release only caches.

Does a progressive web app work offline?

Yes, through a service worker that caches pages and data, and it is enough for reading content and filling in simple forms offline. For large datasets edited offline over days, especially on iPhones, a native app's own database is more dependable than browser storage, which the browser may clear under storage pressure.

How do offline apps handle photos and large files?

They store the files on the phone, record them in the local database as pending, and upload them in the background when a good connection returns, separately from the small data changes. Compress images before storing them, show the user what is still waiting to upload, and never delete the local copy until the server has confirmed it.

Sohail Hussain

Founder, MSH Technologies

Sohail has designed and built websites, web apps and AI products for over 12 years, for clients from Singapore-based industrial groups to early-stage SaaS startups. He writes about what actually worked.

Keep reading

Related guides.

All posts

Your next move

Like what you see? Tell us about it.

A process that takes too long, a website that undersells you, or an idea ready to take shape. Tell us where you are and we will suggest a useful next step.

India · Working with clients worldwide

Sohail, Founder, replies within 1 working day (Mon–Sat, IST). Free and no obligation.