At a festival, on a train, in a field or a building with thick walls, a phone’s connection comes and goes. An app that treats every screen as a network request lets people down exactly when they need it most.

Offline-first is the habit of designing for that gap from the start. It doesn’t mean everything works without a connection. It means deciding, on purpose, what should.

Start with the moments that matter

Before choosing a database or a sync strategy, list the moments when someone is most likely to be offline, and what they will be trying to do.

At a festival, that might be finding a stage, checking when an artist is on or looking at a saved plan. Those moments decide what needs to live on the device.

Everything else can be honest about needing a connection. A clear message is better than a spinner that never stops.

Keep a useful copy on the device

Reading is the easiest place to start. If the information people browse can be packaged and stored locally, most screens no longer depend on a live request.

In our Airhouse work, the backend organises artists, venues and schedules in PostgreSQL and publishes the content as JSON files to Cloudflare R2. The app downloads those files into a local SQLite database and reads the programme from there. Browsing what has already been downloaded doesn’t need a fresh request for each screen.

The trade-off is freshness. A local copy is a snapshot, so the app needs a dependable way to check for changes and apply them.

Make updates boring

Updating local data is where offline apps tend to break. A download stops halfway. A file arrives malformed. A new version of the app meets an old copy of the data.

A few habits make updates predictable:

  • Check whether content has changed before downloading it again.
  • Validate incoming data before it replaces what is already there.
  • Write each dataset in a single database transaction, so a failure leaves the previous version intact.
  • Keep dated exports on the server, so there is a record of what was published.

These all come from the Airhouse update process. None of them is unusual. Together, they turn a failed update into a non-event instead of an empty screen.

Writing is harder than reading

Saving a favourite, filling in a form or sending a message offline raises a different question: what happens when the connection returns?

The app needs somewhere to keep the change, a way to send it later and a rule for conflicts, such as when the same record changed on the server in the meantime. Sometimes the right answer is to keep a change on the device. Airhouse keeps favourites locally, which avoids the problem entirely for that feature.

We decide this feature by feature. Not every action needs to work offline, and the ones that do need clear feedback about what has and hasn’t been sent.

Maps need a plan, not just a cache

A map is often the most important thing to have offline, and the heaviest. Maps are drawn from tiles: small pieces of the map for each area at each zoom level. Storing the right tiles on the device makes the map available without fetching them again.

Offline maps and tiles are part of our Wonderfruit work. The planning is mostly about choosing what to store, which area and which zoom levels, and when to download it: ideally before people need it, rather than at the moment they do.

Test it the way people use it

Turning off the network in a simulator is a start, not a finish. Real conditions are messier: a weak signal that never quite fails, a Wi-Fi network that wants a login first, a battery saver that pauses background work.

We check the important journeys on real devices. It helps to try them with the connection switched off, slowed down and restored halfway through a task. That is usually where the interesting bugs are.

A good offline experience is mostly invisible. People notice it when it isn’t there.