Skip to main content

Staged Rollouts for Capacitor Apps: The Complete Guide

How to run staged rollouts for Capacitor apps: percentage rollouts for live updates, App Store phased release, Google Play staged rollout, auto-pause, and rollback.

Capgo blog illustration for staged rollouts of Capacitor apps with production channel, staged rollout, crash guard, and rollback

Quick answer: A Capacitor app ships on two layers, so a safe staged rollout uses two tools. Web changes (JavaScript, HTML, CSS) go out as live updates with a percentage rollout: with Capgo, bunx @capgo/cli@latest bundle upload --channel production --rollout 5 sends a new bundle to 5% of devices while everyone else stays on the stable bundle. You widen it to 25%, 50%, and 100%, or pause and roll back in one command, and auto-pause can stop it for you when failures spike. Native changes (new plugins, Swift or Kotlin code, permissions, Capacitor upgrades) use the store tools: App Store phased release on iOS and Google Play staged rollouts on Android.

This guide covers both layers, the exact commands, the percentages to use, and what to watch before each step.

Why Capacitor apps need staged rollouts

Every release can break something you did not test: an API response shaped differently in production, a device model with an old WebView, a translation that overflows a button. A staged rollout limits the blast radius. Instead of 100% of users hitting the bug at once, 1 to 5% do, and you find out from real data before the rest of your users ever see it.

Capacitor apps have a special advantage here. Most of your code is web code that can ship as a live update, so you can roll out, measure, and roll back in minutes instead of waiting for a store review in each direction.

The two layers of a Capacitor release

Layer What changes How it ships Staged rollout tool
Web bundle JavaScript, HTML, CSS, images, most business logic Live update, minutes, no store review Capgo progressive rollouts
Native binary Plugins, Swift, Kotlin, permissions, Capacitor version, icons App Store and Google Play, review required App Store phased release, Google Play staged rollout

Most weekly releases only touch the web bundle, so the live update rollout is the one you will run most often. Native releases are rarer and slower, but they need the same discipline.

Staged rollouts for Capacitor live updates

Capgo’s progressive rollouts keep two bundles on a channel at the same time:

  • Stable fallback: the bundle every device on the channel receives by default.
  • Rollout target: the candidate bundle, delivered only to a random share of devices you choose.

Selection is sticky. Capgo caches each device’s decision, keyed by a hash of the device ID and the rollout ID, for the configured cache duration (30 days by default, adjustable from 60 seconds to 365 days), so a device does not flip between versions on every update check. Changing the rollout target starts a new rollout ID and a new cohort. When you raise the percentage, devices already selected stay selected and new ones are added. That gives you a clean cohort to compare against stable.

Step 1: Install the updater and set up a production channel

If your app does not use Capgo yet, run the setup once in your Capacitor project:

bunx @capgo/cli@latest init

This adds the @capgo/capacitor-updater plugin, creates the app, and uploads a first bundle. Make sure your app calls notifyAppReady() after it starts, which lets the plugin roll a device back automatically if a new bundle fails to boot.

Step 2: Ship the new bundle to a small percentage

Build your web app, then upload it to the production channel with a rollout percentage:

bunx @capgo/cli@latest bundle upload com.example.app \
  --path ./dist \
  --channel production \
  --rollout 5

The new bundle becomes the rollout target at 5%. The stable fallback is unchanged, so 95% of devices keep running the current version. Use --rollout-percentage-bps with channel set for steps finer than 1%, for example 50 for 0.5%.

Step 3: Turn on auto-pause before you widen

Auto-pause watches the rollout for you. Capgo evaluates it every five minutes, compares failures to installs in a time window, and uses a Wilson confidence lower bound so a handful of failures on a tiny sample does not trigger it:

bunx @capgo/cli@latest channel set production com.example.app \
  --auto-pause-enabled \
  --auto-pause-failure-rate-bps 500 \
  --auto-pause-window-minutes 60 \
  --auto-pause-min-attempts 100 \
  --auto-pause-action pause

Here the rollout pauses if the failure rate is confidently above 5% over the last hour, once at least 100 install or failure attempts have been recorded. Repeated attempts from one device count toward that threshold. The action can also be rollback or notify.

Step 4: Watch the cohort, then increase

Compare the rollout target with stable in Observe Version health: issue-free rate, launch P90, and WebView P90 by bundle version. Observe does not change the rollout on its own, which is why auto-pause enforces the failure threshold. When the candidate matches stable, raise the percentage:

bunx @capgo/cli@latest channel set production com.example.app --rollout-percentage 25

A schedule that works for most teams:

Step Share of devices Wait before the next step
Canary 1 to 5% 1 hour of real traffic, or a full day for low-traffic apps
Early 25% A few hours
Majority 50% A few hours
Complete 100% Promote to stable

Step 5: Complete or roll back

When the candidate is healthy, make it the new stable bundle for everyone:

bunx @capgo/cli@latest channel set production com.example.app --rollout-promote

If something is wrong, pause first to stop new exposure, then roll back so every device returns to stable on its next update check:

bunx @capgo/cli@latest channel set production com.example.app --rollout-pause
bunx @capgo/cli@latest channel set production com.example.app --rollout-rollback

Not sure which one to use? Our guide on pause vs rollback walks through the decision.

Staged rollouts for native releases

When a release changes native code, it must go through the stores, and each store has its own rollout control.

iOS: App Store phased release

In App Store Connect, choose Release update over 7-day period using phased release on the version page before you submit. Apple then offers the update to users with automatic updates turned on in steps of 1%, 2%, 5%, 10%, 20%, 50%, and 100% over seven days. You can pause the phased release for up to 30 days in total, or release to everyone at once. Anyone can still update manually from the App Store, so phased release limits exposure rather than blocking it.

Android: Google Play staged rollout

In Play Console, create a production release and set a rollout percentage, for example 10%. The percentage does not rise on its own: use Manage rollout then Update rollout to increase it, and Halt rollout to stop it. Halting does not remove the update from devices that already installed it, so a bad build still needs a new release with a higher versionCode. Our Google Play staged rollout guide covers each Play Console step.

Build the binaries in the cloud

Both stores need a signed binary first. Capgo Builder builds, signs, and uploads Capacitor apps to TestFlight and Google Play from one command, without a local Mac:

bunx @capgo/cli@latest build request com.example.app --platform ios
bunx @capgo/cli@latest build request com.example.app --platform android

See the best Capacitor cloud build services for how it compares to Codemagic and Bitrise.

Coordinate native and web rollouts

The two layers interact. A live update built for the new native version must not reach devices still on the old binary, or it can call a plugin that is not there.

  • Let Capgo check compatibility. On upload, the CLI compares the native packages in your project with those recorded for the bundle currently live on the channel, and warns about mismatches. Add --fail-on-incompatible to make it a hard gate in CI. This check compares against the channel’s live bundle, not each device, so pair it with version targeting.
  • Target by native version. Capgo matches bundles to the native app version installed on each device, using channels, semver rules, or native constraints, so a store staged rollout and a live update rollout can run side by side safely. See version targeting.
  • Fix forward with live updates. If a store rollout reveals a web bug, you do not need to halt it and wait for review: ship the fix as a live update to the new binary’s users.

Staged rollouts vs channels vs feature flags

Tool Answers the question Typical use
Channel Which group of devices can get this bundle? Production, beta, QA, a single customer
Staged rollout What share of one channel gets the new bundle? Safe production releases
Feature flag Is this code path turned on for this user? Gradual exposure of one feature inside a bundle

Use channels for internal testers and beta users, staged rollouts for production, and feature flags when one bundle must behave differently for different users.

Checklist for a safe Capacitor staged rollout

  1. Stable fallback is a version you are happy to serve to everyone.
  2. The app calls notifyAppReady() so failed bundles roll back on their own.
  3. Auto-pause is on with a failure threshold and a minimum sample size.
  4. You start at 1 to 5% and compare the cohort with stable before each step.
  5. Native releases use App Store phased release and Google Play staged rollout.
  6. Live updates that need a new native version target that version only.
  7. Someone owns the rollout until it is promoted or rolled back.

Start your first staged rollout

Capgo’s progressive rollouts, auto-pause, and release health data are included in every plan, next to native cloud builds. Start a 14-day free trial with no credit card and ship your next Capacitor release to 5% of devices first.

Live updates for Capacitor apps

When a web-layer bug is live, ship the fix through Capgo instead of waiting days for app store approval. Users get the update in the background while native changes stay in the normal review path.

Latest from our Blog

Capgo gives you the best insights you need to create a truly professional mobile app.