Skip to content
CodeOnAir
Docs menu

CodePush Overview

CodeOnAir CodePush ships JavaScript and asset updates to React Native apps over the air — no store review — with rollouts, mandatory updates and rollbacks.

CodePush replaces your app's JavaScript bundle and images over the air. Fix a bug or change a screen, run one command, and users get it on their next launch — no App Store or Play Store review, no waiting for people to update.

How an update reaches a device#

Step 1
Release
The CLI bundles your JS (and Hermes bytecode), zips it and uploads it to a deployment.
Step 2
Check
On launch, CodePush.sync() asks the server if there's a newer bundle for this app version.
Step 3
Download
The zip is downloaded and its SHA-256 checked, then unpacked next to the app.
Step 4
Run
On the next start — or right away for mandatory releases — the app runs the new bundle.

Deployments and versions#

Each app has two deployments: Android and iOS, each with its own key. Every release targets binary versions — an exact version like 1.2.0, a range like 1.2.x, or * — so a device only gets bundles built for the native code it has. Releases are labelled v1, v2, v3 … per deployment.

Safe by default#

  • Every download is checked against its SHA-256 before it's installed; a corrupted or tampered bundle is refused.
  • If an update crashes before the app calls notifyAppReady (CodePush.sync() does it for you), the next launch goes back to the previous bundle, reports the failure, and never offers that update to the device again.
  • A new binary from the store always starts on its own bundle — older updates are cleared.
  • Roll back, disable a release, make it mandatory, or roll it out to a percentage of devices at any time.

What counts on your plan#

CodePush is counted in update downloads per month. Checking for updates is free. Above your plan's allowance, devices keep the bundle they have and get new ones next month — apps never break.

Note
Only JavaScript and assets can change over the air. New native modules, native code, SDK upgrades and permission changes need a store release.
Stuck? Write to support@codeonair.com with your App ID and what you tried — we reply within a working day.