A synchronization conflict occurs when local work and shared data cannot be combined under the app’s normal rules. Two people may edit the same record, or one person may change it on two devices while one is offline. The technical system needs a resolution strategy, but the user also needs to understand what happened to their contribution.
Design conflict handling around the meaning of the data. A personal preference, a shared note, and a confirmed booking do not deserve the same rule. The aim is to preserve useful work, avoid misleading completion states, and ask for a decision only when the user has enough information and authority to make it.
Identify where simultaneous change matters
List the records and fields that can change on more than one device or account. Determine whether edits are independent or can contradict one another. Adding separate comments may be compatible, while replacing the same deadline with different values creates a decision. The conflict model should reflect those distinctions.
Android’s offline-first guidance explains that local changes can conflict with the network data source and require resolution. Build an offline-first app. The specific strategy depends on the application. Do not adopt a rule merely because it is a familiar example without examining what information it could discard.
Include changes made by automated systems. A server process may update status while a user edits a local draft, even if no second person is involved. Record the authoritative source for each kind of value. Some fields may be user-editable, while others represent a shared process that the client cannot simply overwrite.
Define which changes can merge safely
Consider whether independent fields can be combined without changing meaning. If one person updates a phone label and another adds a note, a field-level merge may preserve both contributions. But fields can have dependencies: changing a start date may alter the meaning of an end date or a selected option.
Document the assumptions behind automatic merging and test them with realistic cases. Avoid treating non-overlapping text positions as proof that the resulting content makes sense. A technically clean merge can still produce a contradictory instruction or an impossible combination of values.
Keep the user informed when the merge changes what they see in a meaningful way. Not every background update needs an alert, but a substantial alteration to an active task should be discoverable. The interface should distinguish the user’s pending edits from newer shared information where that distinction affects the next action.
Decide when a rule may choose automatically
Some data can use a documented automatic preference, such as replacing a noncritical local display setting with the user’s most recent confirmed choice. Other data requires more care. Evaluate the consequence of losing one change before selecting a rule based on arrival time or version order.
Do not assume device clocks provide a simple expression of user intent. The implementation needs reliable ordering or version information appropriate to its architecture. The product decision remains separate: even an accurately ordered later change may not be the change that should replace a consequential earlier one.
Record the accepted tradeoff. If an automatic rule can discard an edit, determine whether history or recovery is needed and how the user can inspect it. A hidden overwrite may be technically valid but operationally unacceptable. Make the decision visible to the team responsible for the workflow.
Show meaningful differences when asking the user
Present the competing values with enough context to understand them. Labels such as “local” and “remote” may be less useful than “your unsent change” and “current shared value.” Include the relevant time or author only when accurate, permitted, and helpful. Avoid exposing unrelated private information during comparison.
Make the action’s consequence explicit. “Keep my change” should describe whether it replaces the shared value, creates a separate copy, or submits another update for review. The user should not need to understand internal storage terminology to predict the result. Use wording tied to the record and task.
Keep the comparison manageable on a small screen. For long content, provide a focused view of changed sections or a clear route to inspect both versions. Do not force a choice between two truncated previews that hide the important difference. If the user cannot make an informed decision, preserve the work and offer another route.
Preserve the unresolved contribution
Keep a safe copy of the user’s pending work while the conflict remains unresolved. Closing the dialog or switching apps should not silently discard it. Explain where the person can return and whether the shared record remains unchanged until they decide. This prevents uncertainty from turning into repeated edits or duplicate records.
Distinguish postponing a decision from accepting one version. A “Not now” action should leave a visible unresolved state if the task still needs attention. Do not remove the conflict from the interface while leaving the user to assume that synchronization completed successfully.
Define how long unresolved work is retained and how account changes affect it. Sensitive drafts may need controlled handling after sign-out or loss of access. The policy should preserve progress appropriately without leaking content between accounts. Make any unavoidable loss or removal behavior clear before it occurs where possible.
Handle deletion and changed access separately
A record deleted elsewhere is not always just another field conflict. Decide whether local edits can create a new copy, require review, or must be discarded under the product’s rules. Explain the choice accurately. Restoring a deleted shared record automatically may contradict the action of an authorized user or process.
If access has changed, recheck authorization before displaying or resubmitting information. A saved local edit does not establish current permission to modify the shared record. Provide a safe explanation and route without exposing restricted content through the conflict screen or error details.
For actions based on availability, revalidate rather than merging blindly. A booking request cannot be resolved merely by choosing one timestamp if the resource is no longer available. The user needs the current options and a clear statement that the earlier local action was not final confirmation.
Test conflict sequences, not only final values
Use two controlled clients or another suitable test setup to create deliberate conflicting changes. Vary the order of edits, reconnection, and confirmation. Check what each device displays before and after resolution. A correct final server value does not guarantee that both users understand what happened.
Include interruptions during the decision. The app may close, lose connection again, or receive another remote update while the user is comparing versions. The resolution action should check that its assumptions remain valid. Otherwise, the user can resolve one conflict only to overwrite a newer change they never saw.
Test repeated resolution attempts and uncertain responses. If the service accepts the chosen version but the confirmation is lost, the next attempt should not create a duplicate or revive an obsolete conflict. Preserve enough identifiers and state to recognize the outcome, and show a truthful pending state while checking it.
Make the resolution visible and maintain the rules
After resolution, show the resulting record and any remaining work. A confirmation should establish what was kept or changed without requiring the user to infer it from a vanished dialog. Where history is available, provide a route to inspect the relevant decision. Keep the explanation concise and connected to the task.
Review conflict rules when adding fields or new collaboration features. A strategy suitable for a simple personal record may fail when the same object becomes shared or consequential. Maintain representative conflict cases as regression scenarios, including deletion, permissions, and interrupted resolution.
For example, a shared checklist may combine independently added items while asking for a decision when two users change the same due date. The pending local date remains visible until resolved, and the final shared date is shown afterward. Connect this design to the offline experience and state restoration. Good synchronization preserves meaning as well as data.