Skip to the page

EAS Build, Submit and over-the-air updates · senior

OTA rollouts, rollbacks, error recovery and download size

You release an OTA update to a small percentage first, watch errors, then raise it to 100% or revert; if a bad update still gets out, expo-updates' own error recovery, a republish of a known-good update or a roll-back-to-embedded directive protect users, and code signing plus bytecode diffing make updates safe and small.

The notes

What you must know

  • Per-update rollout: eas update --rollout-percentage=10, change it with eas update:edit, finish at 100, or undo with eas update:revert-update-rollout. Only one active rollout per branch + platform + runtime version.
  • Branch-based rollout: eas channel:rollout sends a percentage of a channel to a new branch (one per channel; eas update --channel does not work while it runs).
  • Rollback: eas update:rollback (republish an earlier update, or tell clients to use the embedded update) or eas update:roll-back-to-embedded. Republishing a known-good update is the first choice if persisted data is still compatible; otherwise fix forward.
  • Client error recovery: if a NEW update throws a fatal JS error within about 10 seconds of first render, it is marked failed on that device, the app waits up to 5 s for a newer update, otherwise it rolls back to the last update that launched successfully. A previously failed update is skipped. If the update has already rendered successfully before, there is no automatic rollback.
  • Users who are offline get the rollback on their next check.
  • Code signing (Production/Enterprise plans): updates are signed with your private key and verified with the certificate embedded in the binary, so a compromised CDN cannot push code. Rotating keys needs a new runtime version.
  • Download size: Hermes bytecode diffing (bsdiff) was opt-in in SDK 55 and is default from SDK 56 (about 58% smaller on average); SDK 58 also diffs against the embedded bundle automatically. assetPatternsToBeBundled limits which assets are in updates.

The red pen

Common traps: mistake → fix

  • Mistake: "expo-updates rolls back every bad update by itself"

    Fix: only early fatal errors on the first launch of that update; logic bugs and later crashes need you.

  • Mistake: "Rollback = delete the update"

    Fix: you republish an older update or send roll-back-to-embedded.

  • Mistake: "Skip the staged rollout for a one-line fix"

    Fix: one-line fixes cause incidents too.

Easy to hard

Questions interviewers ask, easy to hard

  1. You push an OTA update and crash-free sessions drop 3% in 20 minutes. What happens automatically, and what do you do?
  2. Roll back to what: the previous update or the embedded bundle?
  3. How do users who are offline get the rollback?
  4. How do you stop a compromised CDN from pushing code?
  5. Your update is 9 MB and users on 3G complain. How do you cut it?

Explain it out loud

Explain it out loud to an AI interviewer that follows up, and see where your answer is thin.

Practise by voice

Your first interview is free

Sign up and start with a 15-minute interview with the full report, and an English conversation. No card needed.

Start your free interview