Skip to content

Lesson 8 of 9 · 27m

Over-the-Air Updates Safely

Use Expo/EAS Update or equivalent JavaScript delivery as a controlled release mechanism with runtime-version policy, rollback, signing, and native compatibility boundaries.

Over-the-air updates feel like cheating the app stores: publish JavaScript, users receive it quickly, no full native review cycle for every copy change. Used well, OTA is a serious operational control. Used carelessly, it is how a team ships incompatible JavaScript into a native runtime that cannot execute it. The central rule is simple: an update is compatible only with the native binary contract it was built for.

Understand what OTA can and cannot change

OTA systems typically deliver JavaScript, assets, and some configuration. They do not magically change compiled native code, permissions, entitlement files, app icons, native SDK versions, or store metadata.

Usually safe: copy fixes, UI adjustments, API client logic, feature flags
Usually unsafe: native module changes, permission additions, build-time native config

If the JavaScript expects a native method that an installed binary does not provide, the update can crash on launch. That is not a store inconvenience; it is a self-inflicted outage.

Runtime version policy is the compatibility boundary

With EAS Update, the runtime version declares which native binaries can consume which update set:

{
  "expo": {
    "runtimeVersion": "1.8.0",
    "updates": {"url": "https://u.expo.dev/your-project-id"}
  }
}

Fingerprint-based policies can detect relevant native dependency changes. Whatever you choose, never treat runtime version as an afterthought. It is the safety rail.

Channels and branches are release controls

EAS commonly uses channels on builds and branches for publishing update groups:

eas update --branch production --message "Fix checkout retry logic"
eas update --branch staging --message "Try reduced image prefetch window"

A production binary points at a channel such as production; that channel points at a branch. This indirection lets you repoint channels during rollout or rollback. Do not make production binaries consume untested developer branches.

Rollouts need observation and kill criteria

Publish to internal users first, then staged cohorts if your system supports them. Monitor crash-free sessions, update adoption, launch failures, API errors, and business conversion. Rollback often means republishing a known-good update or repointing a channel, not deleting the bad artifact. Know the exact operational command before the incident.

Older teams may remember Microsoft CodePush fondly. The hosted App Center era is over for practical new designs, so do not build a new strategy assuming that service. EAS Update is the obvious choice in Expo ecosystems; otherwise evaluate self-hosted or vendor update systems against signing, compatibility, rollback, observability, and store-policy compliance.

Design update-aware diagnostics

Every error report should include native version, runtime version, update ID, channel, and rollout cohort. Otherwise a crash report becomes ambiguous: was this binary 1.8.0 with update abc, or the same binary with update def?

Field notes

  • If an update can brick launch, validate update application in automated smoke tests.
  • Never let feature flags compensate for a missing runtime-version boundary.
  • Sign or otherwise protect update delivery where supported; JavaScript delivery is executable-code supply chain.
  • OTA speed is not an excuse to bypass QA. It is a shorter feedback loop, not a missing one.

Was this lesson helpful?

Sign in to rate