Skip to content

Beta

Live updates are in Beta. The flow described here is stable enough to use, but the API, the CLI and the SDK can still change. See What Beta means.

What Live updates are ​

Live updates let a React Native app download a new JavaScript bundle, and its assets, from Notti and run it on the next cold start, without a store release. Every update is signed with a key you own, checked on the device before it is used, and rolled back by the device itself if it crashes or hangs on launch.

What they are not:

  • They only replace JavaScript and assets. A change to native code (a new native module, an SDK or React Native upgrade, a permission, an icon) still needs a new binary through the stores. That is what the runtime version is for: it keeps an update away from binaries it was not built for.
  • They are not a way to change what a store review approved. Use them for fixes and content changes inside the app you shipped.
  • They do not switch bundles in a running session. An update loads on the next cold start.

How it works ​

text
 your machine / CI              Notti                          the device
 -----------------              -----                          ----------
 notti ota release
   bundle + Hermes bytecode
   archive + sign manifest ---> upload + create release
                                (checks signature, key,
                                 plan, monthly limit)
                                                               app starts, shows content
                                                               <--- check (platform, channel,
                                                                     runtime version)
                                release (signed manifest,
                                presigned download URL)  --->  download
                                                               verify signature + every hash
                                                               keep for the NEXT cold start
                                                               next cold start: run it
                                                               3 s of content, no fatal error
                                                               --> applied (stable)
                                                               2 failed launches
                                                               --> roll back, block it on
                                                                   this device
  1. Publish. The CLI bundles your app in release mode, compiles it to Hermes bytecode, builds an archive, signs a manifest and uploads it. The server verifies the signature against the public keys registered on the App and stores the archive in private storage.
  2. Check. After the app shows its first content, the SDK asks Notti for an update for its platform, channel and runtime version.
  3. Download and verify. The SDK downloads the archive and verifies the signature and the hash of every file. An update that fails any check is never run.
  4. Apply on the next cold start. The native layer picks the newest verified update before any JavaScript runs.
  5. Rollback. A new update must prove itself on its first launches. Two failed launches send the device back to the previous stable bundle, or to the bundle embedded in the binary, and block that update on that device.

The details of each step are in the SDK reference (launch and rollback) and Keys, runtime version, channels and rollout.

Plans and limits ​

Live updates are part of the paid plans: every paid SaaS plan, and a self-hosted install whose license carries the feature. The Free plan does not include them. Each App can publish a monthly number of releases, counted per UTC calendar month; the number comes from the plan, so it differs between plans and is not listed here. Disabling a release, lowering its rollout and rolling back never count. See Plans, limits and losing access.

Supported setups ​

  • React Native 0.83 or newer, with the New Architecture and Hermes, bare or with Expo.
  • Expo SDK 55 or newer, with prebuild or a development build (not Expo Go).
  • iOS 15.1+ and Android 7.0 (API 24)+.
  • expo-updates must not be installed. Both take over the app bundle, so they cannot be used together. The Expo config plugin and the CLI both refuse to continue when expo-updates is present.
  • Node.js 20+ for the CLI.

Security model ​

  • Signed manifests. Each release has a manifest listing the bundle, the files with their SHA-256 hashes, the runtime version and the channel. It is signed with ECDSA P-256.
  • Public keys live in the app. A binary trusts only the public keys embedded in it (1 to 5). The same public keys are registered on the App in Notti so the server can refuse an unsigned or wrongly signed release early.
  • Private keys never reach Notti. notti ota keys generate creates the key on your machine. The CLI signs locally and never sends the key, its path or its content. Keep the key in your CI secrets.
  • When a signature fails, the device does not run the update. It reports verification_failed with a reason (signature, unknown_key, hash and others), keeps running the bundle it has, and tries again on a later check. See Troubleshooting.
  • Private storage. Archives are stored in a private bucket and only served through short-lived presigned URLs (15 minutes).

What Beta means ​

Live updates are marked Beta in the dashboard and in these docs.

What is stable:

  • the flow itself: publish, check, verify, apply on the next cold start and rollback;
  • the signing model: ECDSA P-256 signed manifests, public keys in the binary, private keys that never leave you.

What can still change:

  • CLI flags and commands;
  • the SDK JavaScript API and its configuration keys;
  • the fields of the Live updates API.

Breaking changes are called out in the release notes. Feedback is welcome: send it to Zeep support (the contact the Self-Hosted License guide also mentions).

Where to go next ​