Business · Product · Technology · AI

Cross-platform link acceptance: compare parser policy instead of assuming parity

A pinned Movo-X comparison of clinic-case normalization, fragments, duplicate query fields and claim-token representation, with a concrete acceptance matrix.

Work directly with Omer Muneer Qazi · Reviewed 29 November 2026

The scenario: the same printed link reaches two clients

A clinic may share one web link with people using Android and iOS. Both applications can support the same main destination while accepting different representations at the edges. A test that proves each client opens one canonical link does not establish that uppercase text, fragments or duplicate query fields receive the same treatment.

This Movo-X comparison examines pinned Android and Swift parsers, seven passing existing Android JVM tests and four passing supplemental Swift research checks. The supplemental checks exist only in the isolated research snapshot, not upstream application source. It concerns local URL recognition and normalization, not whether an operating system actually hands over the link or whether a server authorizes a claim. The objective is a reviewable acceptance policy, not to label every implementation difference a production defect.

Compare typed destinations before comparing strings

Both inspected parsers create typed clinic and claim destinations rather than forwarding an unrestricted incoming URL into a privileged operation. The shared acceptance starts with the intended host and shape, while custom-scheme handling has its own rules. Unsupported destinations do not become administrative navigation merely because their text resembles a clinic path.

A cross-platform review should first establish what the destination means, then compare the representations each client accepts. Equivalent product intent does not require byte-identical implementations, but differences need an owner. A deliberate compatibility choice is easier to maintain when it appears in a fixture matrix instead of remaining an accidental consequence of two standard URL libraries.

Decide whether clinic slugs are normalized or refused

The reviewed Swift parser lowercases the clinic slug before validating it. The Android parser validates the supplied slug against its lowercase pattern without that transformation. Their existing tests already contain selected examples reflecting the distinction. A supplemental Swift research fixture checks an uppercase synthetic clinic name directly.

Neither local result proves that an uppercase route resolves on the website or that case normalization is universally desirable. The product contract should decide whether shared links are canonicalized at creation, accepted case-insensitively or refused outside the canonical form. Then the website, QR generator and both clients can be tested against that explicit choice.

Treat fragments according to the owning workflow

The reviewed Android general parser refuses a URL with a fragment. The inspected Swift general clinic parser does not use a fragment to alter the clinic destination, so a synthetic clinic URL with an unrelated fragment still becomes that clinic destination. A supplemental fixture checks that narrow behaviour.

This comparison must remain scoped to the general clinic/claim parsers. The application also has specialized link handling, including an opinion workflow whose token representation uses a fragment. A broad statement that the entire application accepts or rejects fragments would exceed this evidence. Trace the owning dispatcher before deriving product behaviour from a general helper.

Make duplicate query-field behaviour explicit

The Android query parser rejects duplicate decoded parameter names. The reviewed Swift parser builds its query dictionary using the first value when a name repeats. A synthetic claim with two different kind values therefore reaches different local decisions: refusal in the reviewed Android fixture and the first accepted value in the supplemental Swift case.

That is a parsing-policy difference, not proof that the second value can change an authoritative clinical record. The receiving service still validates the claim and its context. A shared acceptance contract should decide how duplicates are handled and test the same raw inputs at every layer, so a link does not acquire different meanings as it moves through parsers.

Choose one claim-token representation contract

The Android parser requires the expected lowercase hexadecimal token representation. The Swift claim initializer lowercases its supplied token before checking it. Their inspected paths therefore differ on an uppercase synthetic hexadecimal value even though they can represent the same character sequence after normalization.

The token’s shape is not its authority. Expiry, recipient context, usage and server validation remain separate. A review should distinguish representation normalization from capability verification and keep real token material out of diagnostics. The Android claim type also defines a redacted string representation; that targeted choice should not be expanded into a claim that every logging path is safe.

Separate parser fixtures from device and server acceptance

The accompanying matrix records reviewed helper behaviour for synthetic inputs. An Android JVM test does not exercise domain verification, installed-app selection or a receipt scan. A portable Swift test does not inspect signed entitlements, app scene delivery or the actual iPhone navigation stack.

The authoritative claim operation also remains outside these parser cases. Complete acceptance should connect the canonical link generator, public association, intended device build, owning handler and server outcome. Differences found in a local matrix are useful research inputs for that work, not evidence that current users experienced a failure or that one platform is categorically more secure.

A concrete parity review handover

Deliver canonical examples and deliberate edge cases for casing, duplicate fields, fragments, encoding and claim representation. Record each parser’s current result, the desired product policy and which layer enforces it. When a policy changes, preserve prior fixtures as regression evidence and verify that existing printed links retain the intended outcome.

For a CTO, this replaces an ambiguous requirement to make deep links identical with specific decisions and tests. Some differences may be acceptable compatibility choices; others may require a coordinated change. The engineering value is exposing those choices before a shared QR code becomes an operational promise, while keeping parser correctness, device handover and server authority independently reviewable.

Compare the reviewed boundaries

Synthetic general-parser boundary comparison at the reviewed source revision

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

Input shapeAndroid parserSwift parserPolicy to decide
Uppercase clinic slugRefusesLowercases and accepts valid slugCanonical slug normalization
Clinic URL with unrelated fragmentRefusesKeeps clinic destinationFragment handling by workflow
Repeated claim kind fieldRefuses duplicate fieldKeeps first valueDuplicate-field semantics
Uppercase hexadecimal claim tokenRefuses representationLowercases before validationToken representation contract

Illustrative control flow

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

for synthetic_input in shared_fixture_matrix:
    android_result = android_general_parser(synthetic_input)
    swift_result = swift_general_parser(synthetic_input)
    compare_with_explicit_product_policy(android_result, swift_result)

# Local parsing is separate from OS handover and server claim acceptance.

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 ↗