Beta
Live updates are in Beta: the API, the CLI and the SDK can still change. See What Beta means. For the whole picture, start at the Live updates overview; this page is the install guide.
Overview
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 new store release. Every update is signed with your own key and verified on the device before it is used. If a new update crashes or hangs on launch, the device rolls it back on its own.
Three pieces work together:
- the Notti CLI (
notti-cli) builds, signs and publishes a release from your project, locally or in CI; - the native SDK (
react-native-notti-ota) picks the bundle before any JavaScript runs, checks for updates, verifies them and rolls them back; - the dashboard (the Live updates screen of an App) lists releases, changes their rollout, and disables them.
Paid plans only
Live updates are part of the paid plans, and a self-hosted install whose license includes them. See Plans, limits and losing access.
Requirements
- React Native 0.83 or newer with the New Architecture and Hermes, or Expo SDK 55 or newer with prebuild (not Expo Go).
- iOS 15.1+, Android 7.0 (API 24)+.
- Node.js 20+ for the CLI.
expo-updatesmust not be installed. Both load the app bundle, so they cannot be used together.- A Notti App, its App ID, client key (the device side) and REST key (the CLI side).
How it works
The native layer picks the bundle before any JavaScript runs, checks for updates after the first screen, verifies them, and applies them on the next cold start. A new update that crashes or hangs is rolled back by the device. The full explanation is in the overview and the SDK reference. Installing a new binary discards every downloaded update, and debug builds always load from Metro (Live updates only act in Release builds).
Install with Expo
Install both packages. react-native-notti-ota-expo connects the SDK to Expo's bundle hooks, so AppDelegate and MainApplication stay untouched.
npx expo install react-native-notti-ota react-native-notti-ota-expoRemove expo-updates if your project has it (npm uninstall expo-updates), then add the config plugin to app.json:
{
"expo": {
"plugins": [
[
"react-native-notti-ota",
{
"appId": "9c1d2e3f-4a5b-4c6d-8e7f-0a1b2c3d4e5f",
"baseUrl": "https://app.zeepnotti.app",
"clientKey": "your-client-key",
"channel": "production",
"runtimeVersion": "1.4.0",
"publicKeys": ["-----BEGIN PUBLIC KEY-----\n...\n-----END PUBLIC KEY-----"]
}
]
]
}
}publicKeystakes 1 to 5 PEM public keys, as printed bynotti ota keys generate(see Signing keys and rotation).- Self-hosted: set
baseUrlto your Notti URL. channelandruntimeVersionare pinned in the binary (see Channels and Runtime version).
npx expo prebuild fails, on purpose, when:
expo-updatesis installed, even withupdates.enabledset tofalse;react-native-notti-ota-expois not installed;- an option is invalid, or a value would be read as a number on Android (
1.10: use1.10.0).
Install in a bare React Native app
npm install react-native-notti-ota
cd ios && pod installConfiguration keys
Add these keys to Info.plist (iOS) and as <meta-data> in AndroidManifest.xml (Android). Without them, or with any invalid value, Live updates stay off and the embedded bundle is used.
| Key | Value |
|---|---|
NottiOTAAppId | Notti App ID (UUID) |
NottiOTABaseUrl | Notti URL: https://app.zeepnotti.app, or your self-hosted URL |
NottiOTAClientKey | The App's client key (public, device-restricted) |
NottiOTAChannel | Release channel, [a-z0-9-]{1,32}, for example production |
NottiOTARuntimeVersion | Your runtime version: change it whenever native code changes |
NottiOTAPublicKeys | 1 to 5 signing public keys, comma-separated, each written key_id:base64 |
On Android, a meta-data value that looks like a decimal number (1.10) is read as a float and refused: use 1.10.0 or another non-numeric form.
<!-- android/app/src/main/AndroidManifest.xml, inside <application> -->
<meta-data android:name="NottiOTAAppId" android:value="9c1d2e3f-4a5b-4c6d-8e7f-0a1b2c3d4e5f" />
<meta-data android:name="NottiOTABaseUrl" android:value="https://app.zeepnotti.app" />
<meta-data android:name="NottiOTAClientKey" android:value="your-client-key" />
<meta-data android:name="NottiOTAChannel" android:value="production" />
<meta-data android:name="NottiOTARuntimeVersion" android:value="1.0.0" />
<meta-data android:name="NottiOTAPublicKeys" android:value="f1bf4b16f6495aa0:BM4UFVgJ...Kanw=" />The key_id:base64 value
Expo's config plugin converts the PEM for you; a bare app writes the value itself. For each public key PEM printed by notti ota keys generate, saved as public_key.pem:
# key_id: printed by `notti ota keys generate`, or recomputed:
openssl pkey -pubin -in public_key.pem -outform DER | tail -c 65 | shasum -a 256 | cut -c1-16
# base64 of the 65-byte uncompressed P-256 point:
openssl pkey -pubin -in public_key.pem -outform DER | tail -c 65 | base64Join them with a colon (f1bf4b16f6495aa0:BM4U...), and separate several keys with commas.
iOS, React Native 0.83 to 0.87
In AppDelegate.swift, return the selected bundle from your ReactNativeDelegate:
import NottiOta
class ReactNativeDelegate: RCTDefaultReactNativeFactoryDelegate {
override func sourceURL(for bridge: RCTBridge) -> URL? {
self.bundleURL()
}
override func bundleURL() -> URL? {
#if DEBUG
RCTBundleURLProvider.sharedSettings().jsBundleURL(forBundleRoot: "index")
#else
NottiOTA.bundleURL() ?? Bundle.main.url(forResource: "main", withExtension: "jsbundle")
#endif
}
}iOS, React Native 0.88 and newer
The template starts React Native from SceneDelegate.swift, which is the factory delegate. Make the same change in its bundleURL():
import NottiOta
class SceneDelegate: RCTDefaultReactNativeFactoryDelegate, UIWindowSceneDelegate {
override func bundleURL() -> URL? {
#if DEBUG
RCTBundleURLProvider.sharedSettings().jsBundleURL(forBundleRoot: "index")
#else
NottiOTA.bundleURL() ?? Bundle.main.url(forResource: "main", withExtension: "jsbundle")
#endif
}
}Do not set a custom bundleConfiguration on the factory (React Native 0.84+): it takes precedence over bundleURL(), and the SDK turns Live updates off for that session.
Android
In MainApplication.kt, pass the selected bundle to the React host:
import com.notti.ota.NottiOta
override val reactHost: ReactHost by lazy {
getDefaultReactHost(
context = applicationContext,
packageList = PackageList(this).packages,
jsBundleFilePath = NottiOta.getJSBundleFile(applicationContext),
)
}NottiOta.getJSBundleFile returns null (the embedded bundle) in debug builds, when Live updates are not configured, and when nothing was downloaded yet.
Xcode 27 and the scene life cycle
Apps built with Xcode 27 (iOS 27 SDK) must adopt the UIScene life cycle, or UIKit stops them at launch, before React Native starts. React Native 0.88+ and Expo SDK 56+ templates already use a SceneDelegate. If your app comes from an older template (React Native 0.83 to 0.87, Expo SDK 55), adopt UIScene or move to Expo SDK 56+ before building with Xcode 27.