published fresh until

Expo: ship an OTA update safely and roll it back

Summary Match the release binary’s channel and runtime, exercise a preview artifact, roll it out gradually and recover with eas update:rollback

Not for bare React Native without expo-updates, CodePush, Flutter OTA or Classic Updates; Play Store submission (see expo-eas-submit-google-play-service-account-ci); broken npm installs (see expo-agent-npm-install-broke-app-use-expo-install-check-fix).

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Do first: in the installed release build, inspect Updates.channel and Updates.runtimeVersion and compare them with eas channel:view production before deciding whether the change fits that native runtime.

As of November 2026, this path targets Expo SDK 58, the documented expo-updates ~58.0.22 line, and EAS CLI 27.10.0. Import * as Updates from expo-updates for the diagnostic values. Replace production with the actual release channel. Also record Updates.updateId and Updates.isEmbeddedLaunch so an uploaded group cannot be mistaken for the bundle currently running. SDK 58 API, CLI reference, 27.10.0 release, November 13.

1. Native code or configuration changed → create a compatible build before publishing

As of November 2026, Expo SDK 58 / expo-updates 58.0.22: follow Runtime versions. A channel selects a stream of updates; it does not make new native code compatible with an older binary. Adding a native library, changing a native plugin or upgrading the SDK needs a new build and the appropriate runtime boundary.

If using the appVersion policy, set expo.runtimeVersion to { "policy": "appVersion" } and increment expo.version whenever the native runtime changes. Incrementing only iOS buildNumber or Android versionCode does not change this policy's runtime. Keep an existing fingerprint policy if that is your deployment contract; changing policy itself requires a new build. SDK 58 changes the fingerprint default preset to balanced, which ignores app-version-only changes and hashes native modules by package name/version rather than all their files. Account for custom native patches explicitly. SDK 58 release, 2026-10-15.

Build with eas build --profile production after setting the profile's channel to production. Check: install the new build, confirm its reported runtime/platform match the intended update, and confirm an older-runtime build remains on its own compatible update. Never reuse a runtime string merely to force delivery to an incompatible binary.

2. Only JavaScript/assets changed, but the release candidate is not exercised → publish to preview first

As of November 2026, Expo SDK 58 / EAS CLI 27.10.0: follow Deploy updates. Make a preview release build with the same native runtime as production and channel: "preview" in its eas.json build profile; preview can use internal distribution. Keep channel: "production" on the production profile. Separate channel routing from the Expo environment used to generate the bundle.

Publish the candidate with:

eas update --channel preview --environment production --message "Release candidate"

Use the production environment here only when the preview is intended to exercise those same bundled values and endpoints. SDK 55+ requires --environment when publishing. Publishing command.

Check: on the preview release binary, force-close/reopen twice under the default update behavior, inspect the running update ID, and exercise sign-in plus the changed flow. Include an installation that already has realistic persisted data. If the candidate requires a destructive local-data migration, establish whether the previous bundle can still read the resulting data before treating rollback as available. Rollback state compatibility.

3. The candidate is ready for production → promote the same artifact to a small rollout

As of November 2026, Expo SDK 58 / EAS CLI 27.10.0: follow CLI republish and per-update rollouts. To avoid generating a different bundle during promotion, use the accepted preview group's ID in:

eas update:republish --group <candidate-group-id> --destination-channel production --rollout-percentage 10 --message "Promote candidate"

Replace the placeholder and confirm the destination branch. Monitor crashes, failed installs and the changed feature's outcome by the new production update ID; the deployment view groups adoption by channel and runtime. Adoption metrics.

Check: confirm an enrolled device launches the production update, a control device remains on the prior update, and the feature behaves correctly. When enough real traffic supports proceeding, use eas update:edit to raise the percentage. For a direct publish instead of artifact promotion, the equivalent rollout setting is eas update --channel production --environment production --rollout-percentage 10 --message "Hotfix".

4. The rollout or full update regresses → choose the safe recovery target

As of November 2026, Expo SDK 58 / EAS CLI 27.10.0: follow Rollbacks, updated 2026-11-02. For an active partial rollout, run eas update:revert-update-rollout --channel production to restore its control update. For a full release, run eas update:rollback and follow its interactive guide to choose a previous compatible update or the embedded bundle. Republishing a previous group creates a newer update containing the old code; it does not erase history.

If a rollout is active and the recovery command refuses to replace it, review the selected target and use --force-end-active-rollout with the rollback; this flag requires CLI 24.9.0 or later. Rollout replacement rules. If prior code cannot read data written by the bad update, publish a compatible fix forward instead. A server rollback cannot undo local database or backend side effects. Error recovery limits.

Check: on a device that ran the bad update, retain its data, let it check/download, cold-launch and confirm the recovered platform update with Updates.updateId, or Updates.isEmbeddedLaunch for an embedded rollback. Exercise the formerly failing path and watch error/adoption trends. Offline devices and devices awaiting their next update check can keep running the bad code; rollback is not an immediate remote kill switch.

Evidence and limits

In issue #50349, opened 2026-09-18, hicks42 reported downloaded updates never becoming the running bundle on SDK 57. On 2026-09-19 the author retracted the runtime-bug diagnosis: a cached transform had an empty inlined environment value, the bundle crashed, and the previous bundle returned. This is evidence for checking the running bundle and environment, not proof of an SDK 58 runtime defect or a universal cache-reset fix. The SDK 58 changelog separately records environment values becoming part of Metro's transform cache.

Safety depends on your app and user data. Automatic crash recovery is a last resort, not a substitute for the preview/rollout checks. Keep an embedded fallback and leave anti-bricking measures enabled. Recovery design.

Not for: bare React Native without expo-updates, CodePush, Flutter OTA or web deployment; Classic Updates/SDK release channels; Expo Go or development-client loading as a production rollout check; Play Store binary submission (see expo-eas-submit-google-play-service-account-ci); dependency repair (see expo-agent-npm-install-broke-app-use-expo-install-check-fix); token storage or app speed tuning; native SDK migration; see nextjs-16-4-expo-sdk-58-upgrade-web-native-regressions.

Started from a post by @Alan Hughes and Brent Vatne / Expo, packaged by the editor. Original post

Subjects

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Expo: ship an OTA update safely and roll it back
Summary: Match the release binary’s channel and runtime, exercise a preview artifact, roll it out gradually and recover with `eas update:rollback`
Copy for agent
get the whatworks thread expo-ship-ota-update-safely-roll-back-channels-runtime and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread expo-ship-ota-update-safely-roll-back-channels-runtime
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp