What a Field App Must Do When the Signal Drops

A technician finishes a job in a basement with no bars on the phone, taps the button marked complete, and watches the status change on the screen. That screen is not lying to anyone. Two days later a dispatcher is still looking at that work order sitting open, and the dispatcher’s screen is not lying either. Each device is reporting the truth about the only copy of the record it can see, and the distance between those two truths opened the moment the signal dropped.
Most teams treat that gap as a sync bug and go looking at the queue. The queue is usually behaving exactly as written. What went missing was a decision nobody made out loud about what should happen when two people are both right at the same time.
Neither Platform Promises to Run Your Background Sync
The comfortable sentence in almost every offline design document is that the app will sync once connectivity returns. Both mobile platforms decline to make that promise, and both of them say so in their own documentation.
On Android, Doze defers background processing and network activity when a device goes unused for a stretch of time. While the device sits in Doze, apps are not allowed network access, sync adapters do not run, and scheduled jobs and standard alarms wait for the next maintenance window. The platform opens one of those windows, lets pending work through, and then returns to sleep for a longer interval each time, eventually reaching a few hours between windows. An app added to the battery optimization exemption list gains a little room, but its jobs and syncs are still deferred.
Apple states the position even more plainly. Its developer session on finishing work in the background says that background execution is not guaranteed, and that because the queue of background work is never empty, the system may choose to prioritize other workloads instead. Apple’s developer support puts it in blunter terms, noting that a background processing task is not guaranteed to run on any particular schedule. The earliest begin date a developer sets on a request acts as a floor rather than a commitment, so the task may run later, much later, or never at all.
Neither platform reports back when it has declined. The queue waits, the record stays on the handset, and the only party still believing the sync is pending is the person who was promised it.
Syncing Has to Become an Act the User Can See
Once the guarantee is gone, the interface has to carry what the platform will not. Three things then earn their place on screen. The first is a pending state attached to each record rather than to a single global indicator, so that a technician can tell which jobs have left the device and which have not. The second is the time of the last successful sync rather than the last attempt, because an attempt the system quietly declined looks identical to a success in most logs. The third is a path the user can trigger deliberately with the app in the foreground, which is the one condition under which both platforms will reliably carry out the work.
None of that is decoration, and all of it reaches the data model, since every record now needs a transmission state of its own. Offline behavior belongs in the scope of custom mobile app development services from the first architecture conversation onward, because retrofitting it later means rewriting the write path rather than adding a screen.
The Default Merge Rule Is Already Chosen for You
Suppose the sync does run, from two devices, after both of them edited the same record. Something now has to decide which version survives, and a team that never wrote a resolver will find that the library decided on its behalf. Couchbase Lite, to take a widely deployed example, applies last write wins by default, so the last operation to reach the database prevails. During replication, its automatic resolution instead favors the change with the longest revision history. Couchbase’s own engineering guidance calls that outcome deterministic but arbitrary, and notes that last write wins is simple and may lose data.
Arbitrary is the word worth sitting with for a moment. A quantity field, a status field, and a free-text note each deserve a different answer, and one rule applied across all three will discard the version that mattered without announcing it. Choosing per entity, and per field wherever the stakes justify the effort, is the real work here, and it starts as a business conversation rather than a technical one.
What the Server Has to Expose Before a Real Merge Is Possible
A client cannot resolve what the server declines to describe. Three parts of the contract do most of the lifting. Idempotency keys let a device retry a submission safely when a connection drops after the write but before the response, which otherwise leaves a duplicate that looks exactly like a user mistake. Per-field version tokens let the server see which attribute each side changed, which is the difference between merging two edits and choosing between two entire records. An endpoint that accepts a merge instruction rather than a blind overwrite finally gives the resolution a place to happen.
Without those three, every sync library is reduced to choosing a winner, whatever its documentation says about conflict handling. Offline support is therefore a question for whoever owns the server contract at least as much as it is a question for the app team.
A Managed Sync Service Can Be Retired Under You
There is one further reason to keep resolution logic somewhere the team can read it. MongoDB deprecated the Atlas Device SDKs and Atlas Device Sync in September 2024, setting end of life and removal for September 30, 2025, while the on-device Realm database carried on as an open-source project without sync. Every application that had handed its merge behavior to that service had to take the behavior back in-house, against a fixed date, with no legacy mode waiting underneath.
The point is not about one vendor, because any managed service has a roadmap owner who is somebody other than you. Conflict policy written in your own code, against your own schema, outlives a decision taken in another company’s planning meeting.
Decisions to Make Before Writing the Queue
Four questions are worth settling while the architecture still lives on a whiteboard. The first is which records may be created or edited offline at all, since the honest answer is rarely all of them. The second is what happens to each field when two edits collide, expressed field by field rather than once for the whole application. The third is how the user learns that work is still sitting on the device, and how long counts as too long before somebody gets told. The fourth is who owns the resolution code, which determines whether another company’s roadmap can take it away.
Those four decisions also need somebody watching them once the application is live, because a record that never left a handset generates no error anywhere, and divergence of that kind tends to surface through a phone call rather than a dashboard. Watching for undelivered records therefore belongs in mobile app maintenance services rather than in a one-off release checklist.
A field app that can answer those four has a defensible account of itself on the day a dispatcher and a technician disagree. An app that answers none of them has a queue, and a queue has never been the same thing as a plan.