Skip to content
CodeOnAir
← All posts

react-native-code-push errors: "Update is invalid", "App is up to date" and more

What each CodePush message means and how to fix it: "App is up to date", "not targeting the binary version", "Update is invalid - A JS bundle file named null", integrity check failures, ignored rollbacks and CLI release errors.

CodeOnAir team11 min read

"App is up to date" means the server had nothing newer for this exact binary version and deployment key, which is almost always a target-version or key mismatch, not a network problem. "Update is invalid - A JS bundle file named "null" could not be found" comes from Microsoft's react-native-code-push SDK and means the app's native code never told the SDK the name of the binary's bundle. That usually happens when getJSBundleFile or bundleURL isn't wired to CodePush.

This post is a reference for the messages CodePush prints, what each one means and how to fix it. It covers the archived react-native-code-push SDK (still in many apps, often pointed at a self-hosted server) and @codeonair/code-push-react-native, the SDK for CodeOnAir CodePush. Both SDKs log with a [CodePush] prefix. If the update downloads but the old code keeps running, see CodePush update not applying instead.

The messages at a glance

Message SDK What it means
App is up to date. / SyncStatus.UP_TO_DATE Both (CodeOnAir returns the status without the log line) No release for this binary version, key and device
An update is available but it is not targeting the binary version of your app. react-native-code-push There's a release, for a different binary version
Update is invalid - A JS bundle file named "null" could not be found within the downloaded contents. react-native-code-push The native bundle override isn't set up
The update has no index.android.bundle / main.jsbundle CodeOnAir The zip has no React Native bundle in it
The update contents failed the data integrity check. react-native-code-push The hash or code-signing check failed
The update's hash doesn't match — it may be corrupted CodeOnAir The downloaded zip isn't the file that was released
An update is available, but it is being ignored due to having been previously rolled back. / skipping v7: it was rolled back on this device Both This device crashed on that release before
Sync already in progress. / SyncStatus.SYNC_IN_PROGRESS Both (CodeOnAir returns the status) sync() was called twice at once
Unknown deployment key — check CodePushDeploymentKey in your app CodeOnAir The key isn't one the server knows

The rest of the post takes them one at a time, with the most common first.

"App is up to date"

The server answers every update check with the newest release that fits this device, or nothing. "Up to date" means nothing fit. The causes, most likely first:

1. The release targets a different binary version

Each release targets a binary version, set with -t / --targetBinaryVersion. The device sends its version name: versionName on Android and CFBundleShortVersionString (Xcode's "Version", MARKETING_VERSION) on iOS. The build number (versionCode, CFBundleVersion) doesn't count.

Check what the binary really reports:

# Android: the installed app
adb shell dumpsys package com.example.shop | grep versionName

# iOS: the project's version
xcodebuild -showBuildSettings -scheme Shop | grep MARKETING_VERSION

Then compare it with the release's target in codeonair-codepush history myapp-ios or in the dashboard.

The matching rules in CodeOnAir are simple:

Target (-t) Matches
1.4.0 1.4.0 only
1.4 1.4.0 only (missing parts count as 0)
1.4.x 1.4.0, 1.4.1, 1.4.12…
1.x every 1.* version
* every version

Semver ranges such as ^1.4.0, ~1.4 or >=1.4.0 aren't accepted. The release is refused with app_version must be a version like 1.2.0, a range like 1.2.x, or *, so a CI script copied from App Center fails loudly instead of releasing to nobody.

Fix: release again with the right target. A release's target can't be edited afterwards (A release's target binary version can't be changed. Release the update again with the new target (-t).), because devices on other versions may already have been told there's nothing for them.

codeonair-codepush release-react myapp-ios -t 1.4.x -d "Fix the checkout total"

If you leave -t out, the CLI reads the version from build.gradle or the Xcode project. When that version comes from a variable, the CLI stops with Couldn't read the app's version, so pass -t.

2. The app checks with a different deployment key

Each app has one deployment per platform, <app>-android and <app>-ios, each with its own key. The key in strings.xml (CodePushDeploymentKey) or Info.plist (CodePushDeploymentKey) decides which releases the device sees. Common slips: the iOS key pasted into the Android app, a release sent to myapp-android while you test on an iPhone, or a staging build that still has the production key.

A key the server doesn't know gives a clear error (Unknown deployment key — check CodePushDeploymentKey in your app). A real key for the other platform doesn't, because it's valid. It just has no matching release.

Fix: compare the key in the native config with CodePush → Android / iOS in the dashboard, and rebuild the app after changing it.

3. The device is outside a staged rollout

A release sent with -r 20 reaches 20% of devices. Which devices get it depends on a hash of the release and a random ID kept per install, so the same device gets the same answer on every check. A device outside the rollout gets the newest earlier release it qualifies for, or "up to date".

Fix: widen the rollout with codeonair-codepush patch myapp-android -r 100. A rollout can only grow, because devices that already have the update keep it.

4. The release is disabled

A release uploaded with -x / --disabled, or switched off in the dashboard, is never offered. Turn it on with codeonair-codepush patch myapp-android --label v7 -x false, or with the switch on the release.

5. The device already has it, or is waiting to run it

The update check sends the hash of the update the device is running, or of the one it has installed and is waiting to run. If that's the newest release, the answer is "up to date". This is why a device that downloaded an update it never ran keeps saying "up to date". That case is covered in CodePush update not applying.

6. A new store build is running

After a store update with a new version name, the SDK runs the new binary's own bundle and drops older updates. Releases that target the old version don't match any more. Release again for the new version.

7. The plan's monthly downloads are used up

On CodeOnAir, once a workspace has used its plan's update downloads for the month, update checks answer "up to date" until the next month or an upgrade. Devices keep the bundle they have and nothing breaks. The Free plan includes 5,000 downloads a month. See pricing for the others.

8. It's a debug build

Debug builds load JavaScript from Metro, and CodePush stays out of the way. Test with a release build.

"An update is available but it is not targeting the binary version of your app"

Only react-native-code-push prints this. The server knew of a release in the deployment, but for another binary version, usually a newer one, because the store build on the phone is older than the version you released for. The fix is cause 1 above: release with a -t that includes the version on the phone. The CodeOnAir SDK doesn't print a separate message for this case. It reports UP_TO_DATE.

"Update is invalid - A JS bundle file named "null" could not be found within the downloaded contents"

This is the full message from react-native-code-push:

Update is invalid - A JS bundle file named "null" could not be found within the downloaded contents. Please check that you are releasing your CodePush updates using the exact same JS bundle file name that was shipped with your app's binary.

The SDK learns the bundle's file name when your native code asks it which bundle to load: CodePush.getJSBundleFile() on Android, [CodePush bundleURL] on iOS. If that call never happens, the name stays null and no update can match it. The usual reasons:

  • MainApplication doesn't override getJSBundleFile() (or, on newer templates, doesn't pass the CodePush file to the React host).
  • AppDelegate returns the plain main.jsbundle URL instead of the CodePush one.
  • An upgrade of React Native regenerated these files, or moved the host setup, and the override was lost.

If the message names a real file ("index.android.bundle" or "main.jsbundle"), the override works, but the update was bundled under a different name, for example with a custom --bundle-output. Use the release command's default name.

Fix: put the override back and ship a store build, since this is native code. If you're replacing App Center anyway, the migration guide shows the overrides for @codeonair/code-push-react-native. They're the same idea with CodeOnAirCodePush.getJSBundleFile(applicationContext) and CodeOnAirCodePush.bundleURL().

The CodeOnAir version: "The update has no index.android.bundle"

The CodeOnAir SDK looks for index.android.bundle (Android) or main.jsbundle (iOS) anywhere in the downloaded zip, and refuses an update without one. That happens when a React Native app is released with codeonair-codepush release <folder>. That command is for folders of content used by the native content SDKs. For React Native, use release-react, which bundles the app (or runs expo export:embed for Expo), compiles Hermes bytecode when the app uses Hermes, and names the files correctly.

"The update contents failed the data integrity check"

In react-native-code-push this comes from the hash check, or from code signing when you configured a public key. With code signing, check that the public key in the app matches the private key used to release, and that nothing changed the bundle after signing.

The CodeOnAir SDK compares the SHA-256 of the downloaded zip with the hash the server sent, and fails with The update's hash doesn't match — it may be corrupted when they differ. In practice that's a download cut short or changed on the way: captive Wi-Fi portals, some corporate proxies, or a connection dropped mid-download. The update isn't installed and the next sync tries again, so a single report needs no action. If one network shows it every time, test the download URL from that network.

"Ignored due to having been previously rolled back"

The device installed that release, the app restarted before the update confirmed it started (normally a crash), and the SDK rolled it back. Both SDKs then skip that exact release on that device, so one bad release can't crash the same phone again and again.

Fix: find the crash (see why updates roll back), fix it and release again. The new release has a new hash, so the device tries it. For testing only, ignoreFailedUpdates: false in the sync options retries a rolled-back release.

"Sync already in progress"

Two sync() calls overlapped. Usually that's the codePush(App) wrapper (which syncs on start) plus a manual CodePush.sync() in a useEffect, or a sync on every AppState change. Keep one of them. The second call returns SYNC_IN_PROGRESS and does no harm, but it hides what the first one is doing.

Errors when releasing from the CLI

CLI message Fix
This bundle is identical to the current release (v4). Nothing to release. Nothing changed since the last release. Commit or pull the change, then release
app_version must be a version like 1.2.0, a range like 1.2.x, or * Use one of those forms for -t, not a semver range
Couldn't read the app's version Pass -t 1.4.0
hermesc not found Run npm install in the app, or --useHermes false if it doesn't use Hermes
CodePush isn't set up for this app Dashboard → the app → CodePush → Set up CodePush

Seeing the real error in the app

sync() doesn't throw. It logs sync failed: <message> and returns UNKNOWN_ERROR, which is easy to miss in a release build. To see the actual error, call checkForUpdate() from a hidden debug screen. It throws a CodePushError with a code such as no_deployment_key, no_server_url, invalid_deployment_key or invalid_app_version:

import CodePush from "@codeonair/code-push-react-native";

try {
  const update = await CodePush.checkForUpdate();
  console.log(update ? `update ${update.label} for ${update.appVersion}` : "up to date");
} catch (e: any) {
  console.log("check failed:", e.code, e.message);
}

FAQ

Why does CodePush say "App is up to date" right after I released?

Usually the release targets a different binary version, or the app is checking with the other platform's deployment key. Compare the app's versionName / CFBundleShortVersionString with the release's -t, and the key in the native config with the dashboard.

Does the target binary version use the build number?

No. Only the version name counts: versionName on Android, CFBundleShortVersionString on iOS. Two builds with the same version name and different build numbers get the same updates.

Can I target several versions with one release?

Yes, with a wildcard: -t 1.4.x for every 1.4 patch, -t 1.x for every 1.* version, or -t "*" for all of them. Only do that when the JavaScript really works with every binary in the range.

How do I fix "Update is invalid - A JS bundle file named null"?

Wire the native bundle override, getJSBundleFile() in MainApplication and bundleURL() in AppDelegate, then ship a store build. The message means that call never ran, so the SDK doesn't know the binary's bundle name.

Will users on an older store version get the update?

Only if the release's target includes their version. If the new JavaScript needs native code the old binary doesn't have, keep the target narrow and leave those users on the store update instead.

A release you can check from the terminal

codeonair-codepush history shows each release's target, rollout, downloads, installs and rollbacks, which answers most of the questions above in one command. CodeOnAir CodePush keeps the CodePush API, and the install modes guide covers when updates run. Every CLI option is in the CLI docs. Create a free account to try it with 5,000 update downloads a month.


Checked on 15 November 2026 against the @codeonair/code-push-react-native and @codeonair/code-push-cli packages on npm, the CodeOnAir update-check service, and the archived microsoft/react-native-code-push source for its messages.

Your first AppLink in five minutes.

Create an app, pick a subdomain, and share a link that opens your app. Try Growth free for 30 days — no card needed.