RORK LABJP
MAX — Rork Max builds native Swift apps rather than React Native, spanning iPhone, iPad, Apple Watch, Apple TV, Vision Pro, and iMessageAPIS — It reaches native Apple APIs including SwiftUI, ARKit, HealthKit, HomeKit, Core ML, and Metal, so AR/LiDAR scanning and on-device ML are in scopeCLOUD — Rork Max writes Swift, compiles it on cloud-hosted Macs, and streams a live simulator that accepts real touch inputSUBMIT — From there it prepares the build for device install or App Store submissionSEED — Rork raised a $15M seed led by Left Lane Capital in April, joined by Peak XV and a16z SpeedrunPRICE — It's free to start at roughly 5 prompts a week, paid plans begin at $25/month, and Rork Max runs $200/monthMAX — Rork Max builds native Swift apps rather than React Native, spanning iPhone, iPad, Apple Watch, Apple TV, Vision Pro, and iMessageAPIS — It reaches native Apple APIs including SwiftUI, ARKit, HealthKit, HomeKit, Core ML, and Metal, so AR/LiDAR scanning and on-device ML are in scopeCLOUD — Rork Max writes Swift, compiles it on cloud-hosted Macs, and streams a live simulator that accepts real touch inputSUBMIT — From there it prepares the build for device install or App Store submissionSEED — Rork raised a $15M seed led by Left Lane Capital in April, joined by Peak XV and a16z SpeedrunPRICE — It's free to start at roughly 5 prompts a week, paid plans begin at $25/month, and Rork Max runs $200/month
Articles/Dev Tools
Dev Tools/2026-05-30Advanced

Growing a Staged OTA Update System Without Breaking It

Shipping an EAS Update to every user at once is dangerous. From channel design to staged rollout to automatic rollback, here is the delivery architecture I settled on across 50M cumulative downloads, with working code.

EAS Update6OTA6Staged Rollout3React Native209Expo145Rollback

Premium Article

The scariest thing about over-the-air (OTA) updates is the default behavior: the moment you press publish, every user's device reaches out for the new bundle. Running a family of apps with 50 million cumulative downloads, the night that chilled me most was exactly this — an "instant, full-fleet" push where a broken JavaScript bundle landed on tens of thousands of devices at once. The upside of OTA is that you can fix an app without going through store review. The flip side is that broken code also spreads instantly, with no review to catch it.

EAS Update (Expo's OTA infrastructure) is excellent, but its default usage is simple: publish to a branch, and devices watching that channel fetch it on their next launch. That is fine while you are small. As your user base grows, "everyone, immediately" becomes the risk itself. In this article I'll show how to turn that instant full-fleet push into a 5% to 25% to 100% staged rollout, and then add automatic rollback so a device that grabbed a broken bundle returns to the previous version on its own — all with code I actually run in production.

Why "channel = environment, branch = content"

EAS Update has two concepts, channel and branch, and getting this design wrong up front guarantees pain later. My mental model is simple: a channel is an "environment label" baked into the build; a branch is the actual code content you deliver. A native binary watches a channel, and a channel can be repointed at any branch. That layer of indirection is the foundation for both staged rollout and rollback.

// eas.json — design production as a delivery lane, not a single fixed channel
{
  "cli": { "version": ">= 12.0.0" },
  "build": {
    "production": {
      "channel": "production",
      "autoIncrement": true
    },
    "production-canary": {
      "extends": "production",
      "channel": "production-canary"
    }
  },
  "submit": { "production": {} }
}

The key move is to bake the production channel into the production build, but at delivery time point production at a versioned branch like production-v1.4.0. With this in place, rolling back is just "repoint the channel at the previous branch," and every device returns to the old bundle on its next launch. You don't re-publish a new bundle to overwrite — you change the pointer. That single difference decides how fast you can respond to an incident.

Implementing 5% to 25% to 100% with rollout

EAS Update offers --rollout-percentage, which controls what share of devices on a channel see a new branch. In my operation, I push a new bundle to 5% first, then raise it in stages while watching crash and adoption rates.

#!/usr/bin/env bash
# scripts/staged-publish.sh — fold staged delivery into one command
set -euo pipefail
 
BRANCH="production-$(date +%Y%m%d-%H%M)"
MESSAGE="${1:?commit message required}"
 
# 1. Publish to a fresh branch (no one sees it yet)
eas update --branch "$BRANCH" --message "$MESSAGE" --non-interactive
 
# 2. Point the production channel at the new branch for only 5% of devices
eas channel:edit production \
  --branch "$BRANCH" \
  --rollout-percentage 5 \
  --non-interactive
 
echo "✅ Shipped $BRANCH to 5%."
echo "   In 24h, run scripts/promote.sh $BRANCH 25"
#!/usr/bin/env bash
# scripts/promote.sh — promote after observing. Percentage as an argument.
set -euo pipefail
BRANCH="${1:?branch required}"
PCT="${2:?percentage required}"
 
eas channel:edit production \
  --branch "$BRANCH" \
  --rollout-percentage "$PCT" \
  --non-interactive
 
echo "✅ Promoted $BRANCH to ${PCT}%."

Two numbers always gate my promotions. First, adoption rate — the share of targeted devices that actually fetched and applied the new bundle. If, 24 hours after shipping, fewer than 70% of the rollout cohort has picked it up, I suspect the delivery path or the bundle size. Second, the crash-rate delta between old and new; if the new bundle's crash rate is more than 20% worse than the old one, I don't promote. At 50M-download scale, even 5% is hundreds of thousands of devices, so a statistically meaningful sample arrives within 24 hours. If your app is small, 5% won't give you enough signal — start the first stage closer to 20%.

Thank you for reading this far.

Continue Reading

What follows includes implementation code, benchmarks, and practical content we hope you'll find useful. This site runs without ads — server and development costs are supported entirely by members like you. If it's been helpful, we'd be truly grateful for your support.

WHAT YOU'LL LEARN
A minimal staged-delivery setup (5% to 25% to 100%) using eas.json plus separated channels/branches, in code you can use as-is
How to implement a boot-time health check and rollback that sends a device stuck on a broken bundle back to the previous version on its own
Concrete thresholds for adoption and crash rates over the first 24 to 72 hours, and exactly when to promote versus when to roll back
Secure payment via Stripe · Cancel anytime

Unlock This Article

Get full access to the rest of this article. Buy once, read anytime. This site is ad-free — your support goes directly toward keeping it running.

or
Unlock all articles with Membership →
Share

Thank You for Reading

Rork Lab is ad-free, supported entirely by members like you. We publish practical guides daily with implementation code, benchmarks, and production-ready patterns. If you've found it useful, we'd love to have you on board.

  • Copy-paste ready implementation code
  • New advanced guides published daily
  • $5/mo or $10 for lifetime access
View Membership →

Related Articles

Dev Tools2026-06-24
When EAS Update Ships but the Bug Won't Die — Why OTA Stalls Silently, and How I Operate Around It
EAS Update can succeed and still fail to reach a slice of your users. These are field notes on runtimeVersion drift, updates that publish but never get adopted, and choosing the right rollback — with the instrumentation that actually helped on my Rork apps.
Dev Tools2026-06-28
Ship EAS Updates to a Few First, and Halt Automatically on Crash Rate
Because OTA updates reach everyone instantly, a bad update reaches everyone instantly too. Here is a three-layer design: ship EAS Update to a small canary, decide expand-or-halt from crash-free rate automatically, and hold a safety net on the device — with working code.
Dev Tools2026-05-01
EAS Update Published but Nothing Changes? Five Patterns That Quietly Break OTA Delivery in Rork
You ran eas update, the CLI showed a green Published, but your iPhone keeps loading the old code. Here are the five patterns I keep running into, plus a five-minute diagnostic flow you can use the next time OTA goes silent.
📚RECOMMENDED BOOKS
Build a Large Language Model (From Scratch)
Sebastian Raschka
LLM Dev
Prompt Engineering for LLMs
Berryman & Ziegler
Prompting
AI Engineering
Chip Huyen
AI Eng
* Contains affiliate links
See all →