Business · Product · Technology · AI

Keep WhatsApp notification choices explicit and versioned

A Movo-X native settings case tracing default-off choices, appointment-detail dependencies, versioned Boolean patches, stale/conflict recovery and separate server message policy.

Work directly with Omer Muneer Qazi · Reviewed 29 November 2026

The scenario: notification settings need an honest state model

An account can have appointment messages enabled, details disabled, document notices disabled and a separate stopped state. A settings page needs to show those facts clearly, update only the chosen fields and reconcile a change made on another device. Saving that preference is one step in a larger messaging lifecycle.

Ten existing Android JVM cases and eight portable Swift cases passed for the selected Movo-X models, patch construction and fake request contracts. Native UI, route validation and a historical messaging-policy migration were inspected separately. No actual recipient, provider or outbox was used. The SQL rehearsal file was read as source and was not executed.

Start with explicit off and unavailable representations

The Android cases decode a selected unavailable answer and verify that missing choice fields remain off when availability is supplied. Swift cases additionally decode an empty object as unavailable with all choices off and version zero, and retain a stopped field while ignoring an unknown field. These are precise compatibility decisions for the selected inputs.

Availability, stopped state and individual choices should remain separate in product handling. A decoded model is not proof that a verified phone exists or can receive messages. The inspected historical response function derives an availability value and a phone hint from the account; its current installed behaviour and account provenance were not tested in this batch.

Treat appointment details as a dependent choice

Both native suites check the dependency between appointment notifications and appointment details. Turning appointments off also clears a previously enabled details flag in the selected patch. The effective Android details value is off when appointment messages are off, and the selected Swift rule refuses a details change while that dependency is disabled.

The helpers use different construction policies: Android can include appointments true when its helper is directly asked to enable details, while its inspected UI disables that switch until appointments are on. Swift returns no patch for that disabled request. These are distinct local contracts. Accept each installed interaction explicitly instead of describing the two helpers as identical.

Keep the writable patch narrow and retain its version

The native encoding cases check selected Boolean fields and the loaded version, with no phone-number field in the patch. A settings change therefore carries its intended preference fields rather than allowing the client to supply an arbitrary message recipient through this contract. The GET/PATCH fixtures check methods, paths and selected request identities.

That narrow body does not by itself establish authoritative recipient ownership. The inspected route permits selected fields and an optional valid version before forwarding its operation. The selected native rules normally supply the loaded version. Route validation and database authorization were source-reviewed here, so installed acceptance must still prove the current account/session and recipient boundary.

Handle request identity and stale versions as separate concerns

The Android cases check an explicit request ID and that its service generates an ID when none is supplied. Swift checks the selected supplied mutation identity and the absence of an unnecessary identity on its read. Those headers help distinguish an operation from a newly loaded settings version.

The inspected historical function includes request replay handling, locks its preference row and compares a supplied version before updating it. Those are source-defined transaction intentions. A fake response carrying a higher version does not execute them. Acceptance should cover concurrent devices, stale changes, uncertain responses and repeated operation identities against an isolated current service.

Classify a stale change without silently reapplying it

The native failure cases distinguish a conflict response from the selected cannot-consent condition and a rate limit. Swift also checks its network category and a selected retry value. The inspected Android screen attempts to reload after a stale failure and retains a failure indication rather than declaring the original change successful. The screen branch was not executed.

A new read can inform the next user decision, but it should not be treated as proof that the rejected change committed. Verify rendered state after both successful and failed reloads, repeated taps and a changed account context. A response classifier is a local mapping; the authoritative service defines what its status and error code actually mean.

Keep STOP, recording choices and provider policy distinct

The inspected historical SQL stores a stopped-phone state separately from account preference fields. Its selected STOP path clears choices, and a later explicit app opt-in can lift the stored opt-out under its defined conditions. A START path also has its own source-defined behaviour. These branches were read without database execution.

Native model fields and comments are not evidence that real inbound messages were authenticated or that an actual provider stopped delivery. Those concerns connect to the verified-sender bridge, current installed functions and provider behaviour. Accept STOP, START, retries and account changes using controlled recipients before making an operational claim about effective messaging state.

Accept message content, caps and delivery independently

The selected migration builds appointment/document notices from current scoped links and preferences, with a separate detail choice for selected reminder metadata. It also defines outbox guards and limits. The native code contains copy-facing cap constants. None of those source observations executes the policy or proves provider acceptance, actual message contents or recipient delivery.

The retained SQL rehearsal describes synthetic checks for those boundaries, but running it requires its prerequisite isolated environment and helpers. It was not run here or against production. Keep generic wording, optional detail, rate caps, link access, leases and delivery receipts in a separate message-policy acceptance package rather than certifying them from native switch tests.

A notification-preference handover that preserves user intent

Retain the eighteen scoped cases with source and fake request observations. Add current authoritative version/replay tests, controlled STOP/START acceptance and native screen recovery. Verify the actual recipient scope, message body and provider outcomes independently. Review the rendered explanation of each choice and any earlier stopped state with language and accessibility acceptance.

For a CTO, the useful chain is explicit: the account loads settings, the user selects a narrow change, a versioned request reaches the service and the returned state reconciles the screen. Messaging policy then decides whether an eligible event may be queued and delivered. The selected native evidence supports the settings boundary while the remaining layers retain their own acceptance.

Compare the reviewed boundaries

Preference acceptance and messaging acceptance are different layers

On smaller screens, scroll across to compare every column. Keyboard users can focus the table and use the arrow keys.

BoundarySelected evidenceSeparate acceptance
Default choicesSynthetic decode/off/unavailable casesCurrent account and phone availability
Dependent fieldsAppointment/details patch casesInstalled switch interaction and wording
Versioned writeFake methods, bodies, identities and failuresDurable replay/concurrency and screen reconciliation
Effective messagingHistorical policy source onlySTOP/START, recipient scope, caps and actual delivery

Illustrative control flow

Pseudocode summarizing the decision boundary. It is not copied production code or a deployment instruction.

current = load_account_notification_preferences()
patch = build_applicable_boolean_change(current.version, user_choice)
updated = submit_with_operation_identity(patch)
reconcile_screen_from_returned_preferences(updated)
# Event eligibility, stopped state, message policy and delivery require their own authority.

About this engineering series

Written by Omer Muneer Qazi from a review of Movo-X implementation and dated engineering records. This article explains source behaviour and historical observations; current production, clinical outcomes and store availability require their own verification. Examples are synthetic and proposed test cases are identified as such.

Explore the Movo-X engineering series → · Related implementation experience →

Discuss a similar engineering problem

Send the workflow, current platform and the decision your team needs to make. I can help define an implementation or review scope with concrete acceptance evidence.

Discuss your project on WhatsApp ↗
WhatsApp Omer about this project ↗