New:New releases:CLIcreate-clubedge-app v0.49.1·Clubedge Starter v0.32.0

Clubedge Starter Docs

Over-the-air updates

Changes to the native app's JavaScript and assets reach installed apps with EAS Update, without a store release.

Choose with --ota eas or --ota none (default), with Starter v0.30.0 or newer. The updates are for the native app, so they need --mobile expo:

Over-the-air updates are for the native app: add it with --mobile expo, or choose --ota none.

With EAS Update, a change to the app's JavaScript or assets is published once and downloaded by the installed apps. A store release is still needed for the rest: native code, a package with native code, or app.config.ts.

How the app gets them

  • The app checks when it starts and when it comes back to the foreground, at most every 15 minutes, next to its update checks, and downloads a new update.
  • Home then offers to restart into it, with Restart; otherwise the app starts with it the next time.
  • An update reaches only the builds of its version: runtimeVersion follows version in app.json, so a build with other native code never runs it. A release that changes native code comes with a new version (Store releases).
  • Debug builds load their code from the dev server, and builds made before eas init have no update address: neither checks.

Set it up

Link the app to an Expo project with eas init (Store releases). app.config.ts then gives the builds their update address, https://u.expo.dev/<project id>.

Build the app with EAS. Each build profile in apps/mobile/eas.json names its channel, development, preview, or production, which its builds take updates from.

Publish an update to a channel with the Native app update workflow (.github/workflows/expo-update.yml, run from the Actions tab), with the EXPO_TOKEN repository secret. From apps/mobile, the same:

pnpm dlx eas-cli@latest update --channel production --environment production --message "What it changes"

The bundle is built with the channel's EAS environment, such as its EXPO_PUBLIC_API_URL, as the store builds are.

expo.dev lists each channel's updates; publishing an earlier one again rolls an update back.

Projects without the module have neither expo-updates nor the channels (CLI 0.46.0 or newer).

How is this guide?