Settings
Copy a setup prompt with the install steps and the full markdown guide for this plugin.
To have more fine-grained control over the update system, you can configure it with these settings:
allowModifyUrl
Section titled “allowModifyUrl”Allow the plugin to modify the updateUrl, statsUrl and channelUrl dynamically from the JavaScript side.
Available on Android, iOS, and Electron.
Default: false
{ "plugins": { "CapacitorUpdater": { "allowModifyUrl": true } }}Configure the app id for the app in the config.
Available on Android, iOS, and Electron.
Default: undefined
{ "plugins": { "CapacitorUpdater": { "appId": "com.example.app" } }}appReadyTimeout
Section titled “appReadyTimeout”Configure the number of milliseconds the native plugin should wait before considering an update ‘failed’.
Available on Android, iOS, and Electron.
Default: 10000 (10 seconds)
{ "plugins": { "CapacitorUpdater": { "appReadyTimeout": 1000 } }}autoDeleteFailed
Section titled “autoDeleteFailed”Configure whether the plugin should automatically delete failed bundles.
Available on Android, iOS, and Electron.
Default: true
{ "plugins": { "CapacitorUpdater": { "autoDeleteFailed": false } }}autoDeletePrevious
Section titled “autoDeletePrevious”Configure whether the plugin should automatically delete previous bundles after a successful update.
Available on Android, iOS, and Electron.
Default: true
{ "plugins": { "CapacitorUpdater": { "autoDeletePrevious": false } }}autoSplashscreen
Section titled “autoSplashscreen”Automatically handle splashscreen hiding when using instant apply modes. When enabled, the plugin will automatically hide the splashscreen after updates are applied or when no update is needed. This removes the need to manually listen for appReady events and call SplashScreen.hide(). Only works when
autoUpdateis set to"atInstall","onLaunch", or"always". LegacydirectUpdatevalues are still supported for backward compatibility. Requires the @capacitor/splash-screen plugin to be installed and configured with launchAutoHide: false. Requires Auto Update to be enabled.
Available on Android, iOS, and Electron.
Default: false
{ "plugins": { "CapacitorUpdater": { "autoUpdate": "atInstall", "autoSplashscreen": true } }}autoUpdate
Section titled “autoUpdate”Configure how the plugin should use Auto Update via an update server. Boolean values are still supported for backward compatibility:
trueis the same as"atBackground"andfalseis the same as"off".
Options:
"off"orfalse: Disable Auto Update"atBackground"ortrue: Check and download automatically, then apply when the app moves to the background"atInstall": Apply immediately only after a fresh install or native app update, otherwise use"atBackground""onLaunch": Apply immediately on launch, otherwise use"atBackground"after the launch check"always": Apply immediately whenever Auto Update runs"onlyDownload": Check and download automatically, emitupdateAvailable, and never set the next bundle automatically
Available on Android, iOS, and Electron.
Default: "atBackground" (true is still accepted)
{ "plugins": { "CapacitorUpdater": { "autoUpdate": "onlyDownload" } }}channelUrl
Section titled “channelUrl”Configure the URL / endpoint for channel operations.
Available on Android, iOS, and Electron.
Default: https://plugin.capgo.app/channel_self
{ "plugins": { "CapacitorUpdater": { "channelUrl": "https://example.com/api/channel" } }}defaultChannel
Section titled “defaultChannel”Set the default channel for the app in the config. Case sensitive. This setting will override the default channel set in the cloud, but will still respect overrides made in the cloud.
Available on Android, iOS, and Electron.
Default: undefined
{ "plugins": { "CapacitorUpdater": { "defaultChannel": "production" } }}directUpdate
Section titled “directUpdate”Deprecated. Use
autoUpdatestring modes instead:"atInstall","onLaunch", or"always". This option remains supported for existing apps.
Options:
false: Never do direct updates'atInstall': Same asautoUpdate: "atInstall"'onLaunch': Same asautoUpdate: "onLaunch"'always': Same asautoUpdate: "always"true: (deprecated) Same as “always” for backward compatibility
Available on Android, iOS, and Electron.
Default: false
{ "plugins": { "CapacitorUpdater": { "autoUpdate": "atInstall" } }}disableJSLogging
Section titled “disableJSLogging”Disable the JavaScript logging of the plugin. If true, the plugin will not log to the JavaScript console. Only the native log will be done.
Available on Android, iOS, and Electron.
Default: false
{ "plugins": { "CapacitorUpdater": { "disableJSLogging": true } }}keepUrlPathAfterReload
Section titled “keepUrlPathAfterReload”Configure the plugin to keep the URL path after a reload.
Available on Android, iOS, and Electron.
Default: false
{ "plugins": { "CapacitorUpdater": { "keepUrlPathAfterReload": true } }}periodCheckDelay
Section titled “periodCheckDelay”Configure the delay period for period update check. The unit is in seconds. Cannot be less than 600 seconds (10 minutes).
Available on Android, iOS, and Electron.
Default: 600 (10 minutes)
{ "plugins": { "CapacitorUpdater": { "periodCheckDelay": 600 // (10 minutes) } }}publicKey
Section titled “publicKey”Configure the public key for end to end live update encryption Version 2.
Available on Android, iOS, and Electron.
Default: undefined
{ "plugins": { "CapacitorUpdater": { "publicKey": "YOUR_PUBLIC_KEY" } }}resetWhenUpdate
Section titled “resetWhenUpdate”Automatically delete previous downloaded bundles when a newer native app bundle is installed to the device.
Available on Android, iOS, and Electron.
Default: true
{ "plugins": { "CapacitorUpdater": { "resetWhenUpdate": false } }}responseTimeout
Section titled “responseTimeout”Configure the number of milliseconds the native plugin should wait before considering API timeout.
Available on Android, iOS, and Electron.
Default: 20 (20 seconds)
{ "plugins": { "CapacitorUpdater": { "responseTimeout": 10 // (10 seconds) } }}shakeMenu
Section titled “shakeMenu”Enable shake gesture to show update menu for debugging/testing purposes.
Available on Android, iOS, and Electron.
Default: false
{ "plugins": { "CapacitorUpdater": { "shakeMenu": true } }}statsUrl
Section titled “statsUrl”Configure the URL / endpoint to which update statistics are sent.
Available on Android, iOS, and Electron. Set to "" to disable stats reporting.
Default: https://plugin.capgo.app/stats
{ "plugins": { "CapacitorUpdater": { "statsUrl": "https://example.com/api/stats" } }}updateUrl
Section titled “updateUrl”Configure the URL / endpoint to which update checks are sent.
Available on Android, iOS, and Electron.
Default: https://plugin.capgo.app/updates
{ "plugins": { "CapacitorUpdater": { "updateUrl": "https://example.com/api/auto_update" } }}version
Section titled “version”Configure the current version of the app. This will be used for the first update request. If not set, the plugin will get the version from the native code.
Available on Android, iOS, and Electron.
Default: undefined
{ "plugins": { "CapacitorUpdater": { "version": "1.0.0" } }}Development Settings
Section titled “Development Settings”localApi
Section titled “localApi”Configure the CLI to use a local api for testing.
Default: undefined
{ "plugins": { "CapacitorUpdater": { "localApi": "http://localhost:54321/functions/v1" } }}localApiFiles
Section titled “localApiFiles”Configure the CLI to use a local file api for testing.
Default: undefined
{ "plugins": { "CapacitorUpdater": { "localApiFiles": "http://localhost:54321/functions/v1/files" } }}localHost
Section titled “localHost”Configure the CLI to use a local server for testing or self-hosted update server.
Default: undefined
{ "plugins": { "CapacitorUpdater": { "localHost": "http://localhost:5173" } }}localSupa
Section titled “localSupa”Configure the CLI to use a local server for testing or self-hosted update server.
Default: undefined
{ "plugins": { "CapacitorUpdater": { "localSupa": "http://localhost:54321" } }}localSupaAnon
Section titled “localSupaAnon”Configure the CLI to use a local server for testing.
Default: undefined
{ "plugins": { "CapacitorUpdater": { "localSupaAnon": "YOUR_LOCAL_ANON_KEY" } }}localWebHost
Section titled “localWebHost”Configure the CLI to use a local server for testing or self-hosted update server.
Default: undefined
{ "plugins": { "CapacitorUpdater": { "localWebHost": "http://localhost:5173" } }}