Driver app offline behavior: queue, reconcile, never lose a step
A dispatch platform is only as good as the weakest network moment in a trip. Hospital basements, underground car parks, tunnels and rural stretches all break connectivity, and those are exactly the places where boarding and handover happen. The design question is therefore not whether the app works online; it is what the app records when it cannot reach the server.
The design rule is simple to state and hard to implement: a driver must be able to record every step without connectivity, and no recorded step may be lost or silently rewritten when the connection returns.
What the app does offline
- Local queue — each transition is written to device storage with the device clock, the current position if available, and the step type.
- Local trip context — the assigned trip, pickup and destination, patient mobility flags and contact numbers are cached so the crew can work without fetching.
- Deferred media — signatures and handover photos are queued as files and uploaded when connectivity returns.
- Visible state — the app shows which steps are pending synchronisation, so the crew knows the record is not yet on the server.
Reconciliation, not overwriting
When the queue drains, the server receives device time and receive time for each transition. If device time differs from server time beyond a threshold, the record is flagged rather than corrected. The platform's rule is that a clock discrepancy is information: it may indicate a device with a wrong time zone, and that matters for evidence.
Ordering is preserved per trip. A handover recorded before a boarding cannot be reordered by arrival sequence; if the queue arrives out of order, the server orders by device time within the trip and flags any inversion for review.
What happens when two devices disagree?
| Case | Handling |
|---|---|
| Trip reassigned by dispatch while the crew is offline | The crew sees the reassignment on reconnect; steps already recorded stay attached to the original trip with a note |
| Duplicate step submitted twice | Idempotent write keyed by trip, step type and device time; the second submission is ignored, not duplicated |
| Device clock wrong by hours | Record kept, flagged, and excluded from punctuality statistics until reviewed |
| Photo upload fails repeatedly | File retained on device with a retry counter; the trip is not marked evidence-complete until the upload succeeds |
Why "just sync later" is not enough
A naive implementation queues requests and replays them in order. That fails in three ways: duplicate writes when the first request actually succeeded, lost writes when the app is killed, and wrong ordering when steps are captured across a time-zone boundary. Each failure produces a trip record that looks complete and is not.
The platform therefore treats the device as the primary recorder for field steps and the server as the reconciler. The server never invents a step, and it never deletes one.
What the crew sees
The app displays a sync indicator per trip, and a persistent banner when any step or file is pending. A crew that cannot tell whether a handover reached the server will phone the dispatcher, which defeats the purpose of the app.
At the end of a shift, the app refuses a clean sign-off while the queue is non-empty, and lists what remains. That is the operational guarantee: the crew cannot end the day believing a record exists when it does not.
Frequently asked questions
How much can be queued offline? A full shift of steps and a bounded number of photos. Beyond the bound, the app warns and prioritises handover evidence over other media.
Does offline mode work on any handset? It works on ordinary Android and iOS devices with local storage available. Rugged devices are supported but not required.
What if the device is lost before synchronisation? The trip exists on the server in its last known state, and the missing segment is visible as a gap. Dispatch can reconstruct from the position trace and call records, and the gap is recorded as a gap rather than filled in.
Related: platform capabilities, and the operations notes on evidence capture.
Reference: Medicaid.gov — NEMT documentation requirements that offline evidence has to satisfy.