Skip to content

Lesson 9 of 9 · 30m

Shipping Android, iOS, Web, and Desktop Without Four Different Products

Coordinate platform-specific capabilities, release channels, deep links, update behavior, and observability while preserving one product contract.

The promise of Flutter is not that every platform is identical. It is that product logic can remain coherent while the edges adapt. Teams get in trouble when they use one codebase to ship four accidentally different products: the web build has a different route model, desktop lacks updates, Android handles share intents, and iOS defers a permission nobody documented. You need a platform matrix, not wishful thinking.

Write the capability matrix before launch

For every major feature, record behavior by target:

feature              Android      iOS          web           desktop
push notifications   yes          yes          browser push  no/platform-specific
file picker          yes          yes          yes           yes
background sync      constrained  constrained  tab lifetime  yes-ish
deep links           app links    universal    normal URLs   custom protocol
auto-update          store        store        instant       installer-specific
secure storage       keystore     keychain     browser-limited OS credential store

This table prevents product surprises. It also exposes where a shared interface needs capability detection instead of a false promise.

Mobile deep links, web URLs, and desktop custom schemes should converge on the same route model. A user opening /devices/42 on web and an Android app link should see the same authorization decision. Use route guards centrally rather than sprinkling login checks into pages:

GoRouter(
  redirect: (context, state) {
    final signedIn = auth.isSignedIn;
    final wantsAuth = state.matchedLocation.startsWith('/sign-in');
    if (!signedIn && !wantsAuth) return '/sign-in';
    if (signedIn && wantsAuth) return '/home';
    return null;
  },
  routes: appRoutes,
);

Test cold start through links, not just in-app navigation. Store-installed apps, browsers, and desktop shells have different lifecycle entry behavior.

Release cadence differs even when code does not

Web can deploy instantly. Android review may be fast or delayed. iOS review is outside your control. Desktop update channels depend on your installer and signing infrastructure. This means feature flags and backward-compatible APIs are not optional luxuries. A backend breaking change can strand mobile users on an older approved client while web users receive the new behavior immediately.

Use staged rollout where available, but plan rollback honestly. Rolling back web is easy. Rolling back an installed mobile app usually means shipping a new forward version. Rolling back desktop depends entirely on the updater you built or chose.

Platform adaptation is not inconsistency

Use platform conventions where they carry user trust: confirmation placement, keyboard shortcuts, window controls, share sheets, drag interactions, and text selection. Flutter provides Material and Cupertino pieces, but the right answer may be a branded design language with adaptive behavior. What must remain consistent is the product contract: names, permission decisions, account state, and data semantics.

Operational visibility ties the targets together

Release health should be sliced by platform, version, architecture, and environment. A crash-free percentage across all targets can hide a broken Linux build. At minimum track:

startup success/crash by platform and version
critical flow completion by platform
API compatibility errors by client version
update adoption by channel
feature flag exposure and rollback state

Tie logs and crash reports to the artifact manifest from the release pipeline. Otherwise "works on web, broken on Android" turns into archaeology.

Field notes

  • Browser storage can disappear under pressure or privacy settings; do not treat web persistence as equivalent to mobile secure storage.
  • Desktop is not one platform operationally. Windows installer signing, macOS notarization, and Linux packaging have separate failure modes.
  • Deep-link verification requires server-side asset files such as assetlinks.json and Apple app-site association files; app configuration alone is insufficient.
  • A feature flag still needs a kill strategy. Decide what happens when the flag service is unavailable.
  • If support cannot tell which platform a user means, your telemetry and UI version surface are incomplete.

Was this lesson helpful?

Sign in to rate