Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@capgo/capacitor-updater

Cap-go137.1kMPL-2.07.2.5TypeScript support: included

Live update for capacitor apps

capacitor, live updates, live update, updates, auto update, manual update, capgo, plugin, OTA, ionic, appflow alternative, capawesome alternative, native

readme

Capacitor updater

Capgo - Instant updates for capacitor Discord Discord npm GitHub latest commit https://good-labs.github.io/greater-good-affirmation/assets/images/badge.svg Security Rating Bugs Maintainability Rating Code Smells Vulnerabilities Quality Gate Status Technical Debt Open Bounties Rewarded Bounties

Update Ionic Capacitor apps without App/Play Store review (Code-push / hot-code updates).

You have 3 ways possible :

  • Use capgo.app a full featured auto-update system in 5 min Setup, to manage version, update, revert and see stats.
  • Use your own server update with auto-update system
  • Use manual methods to zip, upload, download, from JS to do it when you want.

Community

Join the discord to get help.

Documentation

I maintain a more user-friendly and complete documentation here.

Migration to v7

Compatibility

Plugin version Capacitor compatibility Maintained
v7.*.* v7.*.*
v6.*.* v6.*.* Critical bug only
v5.*.* v5.*.* ⚠️ Deprecated
v4.*.* v4.*.* ⚠️ Deprecated
v3.*.* v3.*.* ⚠️ Deprecated
> 7 v4.*.* ⚠️ Deprecated, our CI got crazy and bumped too much version

iOS

Privacy manifest

Add the NSPrivacyAccessedAPICategoryUserDefaults dictionary key to your Privacy Manifest (usually ios/App/PrivacyInfo.xcprivacy):

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
  <dict>
    <key>NSPrivacyAccessedAPITypes</key>
    <array>
      <!-- Add this dict entry to the array if the file already exists. -->
      <dict>
        <key>NSPrivacyAccessedAPIType</key>
        <string>NSPrivacyAccessedAPICategoryUserDefaults</string>
        <key>NSPrivacyAccessedAPITypeReasons</key>
        <array>
          <string>CA92.1</string>
        </array>
      </dict>
    </array>
  </dict>
</plist>

We recommend to declare CA92.1 as the reason for accessing the UserDefaults API.

Installation

npm install @capgo/capacitor-updater
npx cap sync

Auto-update setup

Create your account in capgo.app and get your API key

  • Login to CLI npx @capgo/cli@latest init API_KEY And follow the steps by step to setup your app.

For detailed instructions on the auto-update setup, refer to the Auto update documentation.

Manual setup

Download update distribution zipfiles from a custom URL. Manually control the entire update process.

  • Edit your capacitor.config.json like below, set autoUpdate to false.
    // capacitor.config.json
    {
      "appId": "**.***.**",
      "appName": "Name",
      "plugins": {
          "CapacitorUpdater": {
              "autoUpdate": false,
          }
      }
    }
  • Add to your main code
    import { CapacitorUpdater } from '@capgo/capacitor-updater'
    CapacitorUpdater.notifyAppReady()
    This informs Capacitor Updater that the current update bundle has loaded succesfully. Failing to call this method will cause your application to be rolled back to the previously successful version (or built-in bundle).
  • Add this to your application.
    const version = await CapacitorUpdater.download({
      url: 'https://github.com/Cap-go/demo-app/releases/download/0.0.4/dist.zip',
    })
    await CapacitorUpdater.set(version); // sets the new version, and reloads the app
  • Failed updates will automatically roll back to the last successful version.
  • Example: Using App-state to control updates, with SplashScreen: You might also consider performing auto-update when application state changes, and using the Splash Screen to improve user experience. `javascript import { CapacitorUpdater, VersionInfo } from '@capgo/capacitor-updater' import { SplashScreen } from '@capacitor/splash-screen' import { App } from '@capacitor/app'

    let version: VersionInfo; App.addListener('appStateChange', async (state) => {

    if (state.isActive) {
      // Ensure download occurs while the app is active, or download may fail
      version = await CapacitorUpdater.download({
        url: 'https://github.com/Cap-go/demo-app/releases/download/0.0.4/dist.zip',
      })
    }
    
    if (!state.isActive && version) {
      // Activate the update when the application is sent to background
      SplashScreen.show()
      try {
        await CapacitorUpdater.set(version);
        // At this point, the new version should be active, and will need to hide the splash screen
      } catch () {
        SplashScreen.hide() // Hide the splash screen again if something went wrong
      }
    }

    })


TIP: If you prefer a secure and automated way to update your app, you can use [capgo.app](https://capgo.app) - a full-featured, auto-update system.

### Store Guideline Compliance

Android Google Play and iOS App Store have corresponding guidelines that have rules you should be aware of before integrating the Capacitor-updater solution within your application.

#### Google play

Third paragraph of [Device and Network Abuse](https://support.google.com/googleplay/android-developer/answer/9888379?hl=en) topic describe that updating source code by any method besides Google Play's update mechanism is restricted. But this restriction does not apply to updating JavaScript bundles.
> This restriction does not apply to code that runs in a virtual machine and has limited access to Android APIs (such as JavaScript in a web view or browser).

That fully allow Capacitor-updater as it updates just JS bundles and can't update native code part.

#### App Store

Paragraph **3.3.2**, since back in 2015's [Apple Developer Program License Agreement](https://developer.apple.com/programs/ios/information/) fully allowed performing over-the-air updates of JavaScript and assets.

And in its latest version (20170605) [downloadable here](https://developer.apple.com/terms/) this ruling is even broader:

> Interpreted code may be downloaded to an Application, but only so long as such code:
- (a) does not change the primary purpose of the Application by providing features or functionality that are inconsistent with the intended and advertised purpose of the Application as submitted to the App Store
- (b) does not create a store or storefront for other code or applications
- (c) does not bypass signing, sandbox, or other security features of the OS.

Capacitor-updater allows you to respect these rules in full compliance, so long as the update you push does not significantly deviate your product from its original App Store approved intent.

To further remain in compliance with Apple's guidelines, we suggest that App Store-distributed apps don't enable the `Force update` scenario, since in the [App Store Review Guidelines](https://developer.apple.com/app-store/review/guidelines/) it is written that:

> Apps must not force users to rate the app, review the app, download other apps, or other similar actions to access functionality, content, or use of the app.

This is not a problem for the default behavior of background update, since it won't force the user to apply the new version until the next app close, but at least you should be aware of that ruling if you decide to show it.

### Packaging `dist.zip` update bundles

Capacitor Updater works by unzipping a compiled app bundle to the native device filesystem. Whatever you choose to name the file you upload/download from your release/update server URL (via either manual or automatic updating), this `.zip` bundle must meet the following requirements:

- The zip file should contain the full contents of your production Capacitor build output folder, usually `{project directory}/dist/` or `{project directory}/www/`. This is where `index.html` will be located, and it should also contain all bundled JavaScript, CSS, and web resources necessary for your app to run.
- Do not password encrypt the bundle zip file, or it will fail to unpack.
- Make sure the bundle does not contain any extra hidden files or folders, or it may fail to unpack.

## Updater Plugin Config

<docgen-config>
<!--Update the source file JSDoc comments and rerun docgen to update the docs below-->

CapacitorUpdater can be configured with these options:

| Prop                         | Type                 | Description                                                                                                                                                                                     | Default                                            | Since   |
| ---------------------------- | -------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------- | ------- |
| **`appReadyTimeout`**        | <code>number</code>  | Configure the number of milliseconds the native plugin should wait before considering an update 'failed'. Only available for Android and iOS.                                                   | <code>10000 // (10 seconds)</code>                 |         |
| **`responseTimeout`**        | <code>number</code>  | Configure the number of milliseconds the native plugin should wait before considering API timeout. Only available for Android and iOS.                                                          | <code>20 // (20 second)</code>                     |         |
| **`autoDeleteFailed`**       | <code>boolean</code> | Configure whether the plugin should use automatically delete failed bundles. Only available for Android and iOS.                                                                                | <code>true</code>                                  |         |
| **`autoDeletePrevious`**     | <code>boolean</code> | Configure whether the plugin should use automatically delete previous bundles after a successful update. Only available for Android and iOS.                                                    | <code>true</code>                                  |         |
| **`autoUpdate`**             | <code>boolean</code> | Configure whether the plugin should use Auto Update via an update server. Only available for Android and iOS.                                                                                   | <code>true</code>                                  |         |
| **`resetWhenUpdate`**        | <code>boolean</code> | Automatically delete previous downloaded bundles when a newer native app bundle is installed to the device. Only available for Android and iOS.                                                 | <code>true</code>                                  |         |
| **`updateUrl`**              | <code>string</code>  | Configure the URL / endpoint to which update checks are sent. Only available for Android and iOS.                                                                                               | <code>https://plugin.capgo.app/updates</code>      |         |
| **`channelUrl`**             | <code>string</code>  | Configure the URL / endpoint for channel operations. Only available for Android and iOS.                                                                                                        | <code>https://plugin.capgo.app/channel_self</code> |         |
| **`statsUrl`**               | <code>string</code>  | Configure the URL / endpoint to which update statistics are sent. Only available for Android and iOS. Set to "" to disable stats reporting.                                                     | <code>https://plugin.capgo.app/stats</code>        |         |
| **`publicKey`**              | <code>string</code>  | Configure the public key for end to end live update encryption Version 2 Only available for Android and iOS.                                                                                    | <code>undefined</code>                             | 6.2.0   |
| **`version`**                | <code>string</code>  | 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. Only available for Android and iOS. | <code>undefined</code>                             | 4.17.48 |
| **`directUpdate`**           | <code>boolean</code> | Make the plugin direct install the update when the app what just updated/installed. Only for autoUpdate mode. Only available for Android and iOS.                                               | <code>undefined</code>                             | 5.1.0   |
| **`periodCheckDelay`**       | <code>number</code>  | Configure the delay period for period update check. the unit is in seconds. Only available for Android and iOS. Cannot be less than 600 seconds (10 minutes).                                   | <code>600 // (10 minutes)</code>                   |         |
| **`localS3`**                | <code>boolean</code> | Configure the CLI to use a local server for testing or self-hosted update server.                                                                                                               | <code>undefined</code>                             | 4.17.48 |
| **`localHost`**              | <code>string</code>  | Configure the CLI to use a local server for testing or self-hosted update server.                                                                                                               | <code>undefined</code>                             | 4.17.48 |
| **`localWebHost`**           | <code>string</code>  | Configure the CLI to use a local server for testing or self-hosted update server.                                                                                                               | <code>undefined</code>                             | 4.17.48 |
| **`localSupa`**              | <code>string</code>  | Configure the CLI to use a local server for testing or self-hosted update server.                                                                                                               | <code>undefined</code>                             | 4.17.48 |
| **`localSupaAnon`**          | <code>string</code>  | Configure the CLI to use a local server for testing.                                                                                                                                            | <code>undefined</code>                             | 4.17.48 |
| **`localApi`**               | <code>string</code>  | Configure the CLI to use a local api for testing.                                                                                                                                               | <code>undefined</code>                             | 6.3.3   |
| **`localApiFiles`**          | <code>string</code>  | Configure the CLI to use a local file api for testing.                                                                                                                                          | <code>undefined</code>                             | 6.3.3   |
| **`allowModifyUrl`**         | <code>boolean</code> | Allow the plugin to modify the updateUrl, statsUrl and channelUrl dynamically from the JavaScript side.                                                                                         | <code>false</code>                                 | 5.4.0   |
| **`defaultChannel`**         | <code>string</code>  | Set the default channel for the app in the config. Case sensitive. This will setting will override the default channel set in the cloud, but will still respect overrides made in the cloud.    | <code>undefined</code>                             | 5.5.0   |
| **`appId`**                  | <code>string</code>  | Configure the app id for the app in the config.                                                                                                                                                 | <code>undefined</code>                             | 6.0.0   |
| **`keepUrlPathAfterReload`** | <code>boolean</code> | Configure the plugin to keep the URL path after a reload. WARNING: When a reload is triggered, 'window.history' will be cleared.                                                                | <code>false</code>                                 | 6.8.0   |

### Examples

In `capacitor.config.json`:

```json
{
  "plugins": {
    "CapacitorUpdater": {
      "appReadyTimeout": 1000 // (1 second),
      "responseTimeout": 10 // (10 second),
      "autoDeleteFailed": false,
      "autoDeletePrevious": false,
      "autoUpdate": false,
      "resetWhenUpdate": false,
      "updateUrl": https://example.com/api/auto_update,
      "channelUrl": https://example.com/api/channel,
      "statsUrl": https://example.com/api/stats,
      "publicKey": undefined,
      "version": undefined,
      "directUpdate": undefined,
      "periodCheckDelay": undefined,
      "localS3": undefined,
      "localHost": undefined,
      "localWebHost": undefined,
      "localSupa": undefined,
      "localSupaAnon": undefined,
      "localApi": undefined,
      "localApiFiles": undefined,
      "allowModifyUrl": undefined,
      "defaultChannel": undefined,
      "appId": undefined,
      "keepUrlPathAfterReload": undefined
    }
  }
}

In capacitor.config.ts:

/// <reference types="@capgo/capacitor-updater" />

import { CapacitorConfig } from '@capacitor/cli';

const config: CapacitorConfig = {
  plugins: {
    CapacitorUpdater: {
      appReadyTimeout: 1000 // (1 second),
      responseTimeout: 10 // (10 second),
      autoDeleteFailed: false,
      autoDeletePrevious: false,
      autoUpdate: false,
      resetWhenUpdate: false,
      updateUrl: https://example.com/api/auto_update,
      channelUrl: https://example.com/api/channel,
      statsUrl: https://example.com/api/stats,
      publicKey: undefined,
      version: undefined,
      directUpdate: undefined,
      periodCheckDelay: undefined,
      localS3: undefined,
      localHost: undefined,
      localWebHost: undefined,
      localSupa: undefined,
      localSupaAnon: undefined,
      localApi: undefined,
      localApiFiles: undefined,
      allowModifyUrl: undefined,
      defaultChannel: undefined,
      appId: undefined,
      keepUrlPathAfterReload: undefined,
    },
  },
};

export default config;
</docgen-config>

API

<docgen-index> </docgen-index> <docgen-api>

notifyAppReady()

notifyAppReady() => Promise<AppReadyResult>

Notify Capacitor Updater that the current bundle is working (a rollback will occur if this method is not called on every app launch) By default this method should be called in the first 10 sec after app launch, otherwise a rollback will occur. Change this behaviour with {@link appReadyTimeout}

Returns: Promise<AppReadyResult>


setUpdateUrl(...)

setUpdateUrl(options: UpdateUrl) => Promise<void>

Set the updateUrl for the app, this will be used to check for updates.

Param Type Description
options UpdateUrl contains the URL to use for checking for updates.

Since: 5.4.0


setStatsUrl(...)

setStatsUrl(options: StatsUrl) => Promise<void>

Set the statsUrl for the app, this will be used to send statistics. Passing an empty string will disable statistics gathering.

Param Type Description
options StatsUrl contains the URL to use for sending statistics.

Since: 5.4.0


setChannelUrl(...)

setChannelUrl(options: ChannelUrl) => Promise<void>

Set the channelUrl for the app, this will be used to set the channel.

Param Type Description
options ChannelUrl contains the URL to use for setting the channel.

Since: 5.4.0


download(...)

download(options: DownloadOptions) => Promise<BundleInfo>

Download a new bundle from the provided URL, it should be a zip file, with files inside or with a unique id inside with all your files

Param Type Description
options DownloadOptions The {@link DownloadOptions} for downloading a new bundle zip.

Returns: Promise<BundleInfo>


next(...)

next(options: BundleId) => Promise<BundleInfo>

Set the next bundle to be used when the app is reloaded.

Param Type Description
options BundleId Contains the ID of the next Bundle to set on next app launch. {@link BundleInfo.id}

Returns: Promise<BundleInfo>


set(...)

set(options: BundleId) => Promise<void>

Set the current bundle and immediately reloads the app.

Param Type Description
options BundleId A {@link BundleId} object containing the new bundle id to set as current.

delete(...)

delete(options: BundleId) => Promise<void>

Deletes the specified bundle from the native app storage. Use with {@link list} to get the stored Bundle IDs.

Param Type Description
options BundleId A {@link BundleId} object containing the ID of a bundle to delete (note, this is the bundle id, NOT the version name)

list(...)

list(options?: ListOptions | undefined) => Promise<BundleListResult>

Get all locally downloaded bundles in your app

Param Type Description
options ListOptions The {@link ListOptions} for listing bundles

Returns: Promise<BundleListResult>


reset(...)

reset(options?: ResetOptions | undefined) => Promise<void>

Reset the app to the builtin bundle (the one sent to Apple App Store / Google Play Store ) or the last successfully loaded bundle.

Param Type Description
options ResetOptions Containing {@link ResetOptions.toLastSuccessful}, true resets to the builtin bundle and false will reset to the last successfully loaded bundle.

current()

current() => Promise<CurrentBundleResult>

Get the current bundle, if none are set it returns builtin. currentNative is the original bundle installed on the device

Returns: Promise<CurrentBundleResult>


reload()

reload() => Promise<void>

Reload the view


setMultiDelay(...)

setMultiDelay(options: MultiDelayConditions) => Promise<void>

Sets a {@link DelayCondition} array containing conditions that the Plugin will use to delay the update. After all conditions are met, the update process will run start again as usual, so update will be installed after a backgrounding or killing the app. For the date kind, the value should be an iso8601 date string. For the background kind, the value should be a number in milliseconds. For the nativeVersion kind, the value should be the version number. For the kill kind, the value is not used. The function has unconsistent behavior the option kill do trigger the update after the first kill and not after the next background like other options. This will be fixed in a future major release.

Param Type Description
options MultiDelayConditions Containing the {@link MultiDelayConditions} array of conditions to set

Since: 4.3.0


cancelDelay()

cancelDelay() => Promise<void>

Cancels a {@link DelayCondition} to process an update immediately.

Since: 4.0.0


getLatest(...)

getLatest(options?: GetLatestOptions | undefined) => Promise<LatestVersion>

Get Latest bundle available from update Url

Param Type
options GetLatestOptions

Returns: Promise<LatestVersion>

Since: 4.0.0


setChannel(...)

setChannel(options: SetChannelOptions) => Promise<ChannelRes>

Sets the channel for this device. The channel has to allow for self assignment for this to work. Do not use this method to set the channel at boot when autoUpdate is enabled in the {@link PluginsConfig}. This method is to set the channel after the app is ready. This methods send to Capgo backend a request to link the device ID to the channel. Capgo can accept or refuse depending of the setting of your channel.

Param Type Description
options SetChannelOptions Is the {@link SetChannelOptions} channel to set

Returns: Promise<ChannelRes>

Since: 4.7.0


unsetChannel(...)

unsetChannel(options: UnsetChannelOptions) => Promise<void>

Unset the channel for this device. The device will then return to the default channel

Param Type
options UnsetChannelOptions

Since: 4.7.0


getChannel()

getChannel() => Promise<GetChannelRes>

Get the channel for this device

Returns: Promise<GetChannelRes>

Since: 4.8.0


setCustomId(...)

setCustomId(options: SetCustomIdOptions) => Promise<void>

Set a custom ID for this device

Param Type Description
options SetCustomIdOptions is the {@link SetCustomIdOptions} customId to set

Since: 4.9.0


getBuiltinVersion()

getBuiltinVersion() => Promise<BuiltinVersion>

Get the native app version or the builtin version if set in config

Returns: Promise<BuiltinVersion>

Since: 5.2.0


getDeviceId()

getDeviceId() => Promise<DeviceId>

Get unique ID used to identify device (sent to auto update server)

Returns: Promise<DeviceId>


getPluginVersion()

getPluginVersion() => Promise<PluginVersion>

Get the native Capacitor Updater plugin version (sent to auto update server)

Returns: Promise<PluginVersion>


isAutoUpdateEnabled()

isAutoUpdateEnabled() => Promise<AutoUpdateEnabled>

Get the state of auto update config.

Returns: Promise<AutoUpdateEnabled>


removeAllListeners()

removeAllListeners() => Promise<void>

Remove all listeners for this plugin.

Since: 1.0.0


addListener('download', ...)

addListener(eventName: 'download', listenerFunc: (state: DownloadEvent) => void) => Promise<PluginListenerHandle>

Listen for bundle download event in the App. Fires once a download has started, during downloading and when finished.

Param Type
eventName 'download'
listenerFunc (state: DownloadEvent) => void

Returns: Promise<PluginListenerHandle>

Since: 2.0.11


addListener('noNeedUpdate', ...)

addListener(eventName: 'noNeedUpdate', listenerFunc: (state: NoNeedEvent) => void) => Promise<PluginListenerHandle>

Listen for no need to update event, useful when you want force check every time the app is launched

Param Type
eventName 'noNeedUpdate'
listenerFunc (state: NoNeedEvent) => void

Returns: Promise<PluginListenerHandle>

Since: 4.0.0


addListener('updateAvailable', ...)

addListener(eventName: 'updateAvailable', listenerFunc: (state: UpdateAvailableEvent) => void) => Promise<PluginListenerHandle>

Listen for available update event, useful when you want to force check every time the app is launched

Param Type
eventName 'updateAvailable'
listenerFunc (state: UpdateAvailableEvent) => void

Returns: Promise<PluginListenerHandle>

Since: 4.0.0


addListener('downloadComplete', ...)

addListener(eventName: 'downloadComplete', listenerFunc: (state: DownloadCompleteEvent) => void) => Promise<PluginListenerHandle>

Listen for downloadComplete events.

Param Type
eventName 'downloadComplete'
listenerFunc (state: DownloadCompleteEvent) => void

Returns: Promise<PluginListenerHandle>

Since: 4.0.0


addListener('majorAvailable', ...)

addListener(eventName: 'majorAvailable', listenerFunc: (state: MajorAvailableEvent) => void) => Promise<PluginListenerHandle>

Listen for Major update event in the App, let you know when major update is blocked by setting disableAutoUpdateBreaking

Param Type
eventName 'majorAvailable'
listenerFunc (state: MajorAvailableEvent) => void

Returns: Promise<PluginListenerHandle>

Since: 2.3.0


addListener('updateFailed', ...)

addListener(eventName: 'updateFailed', listenerFunc: (state: UpdateFailedEvent) => void) => Promise<PluginListenerHandle>

Listen for update fail event in the App, let you know when update has fail to install at next app start

Param Type
eventName 'updateFailed'
listenerFunc (state: UpdateFailedEvent) => void

Returns: Promise<PluginListenerHandle>

Since: 2.3.0


addListener('downloadFailed', ...)

addListener(eventName: 'downloadFailed', listenerFunc: (state: DownloadFailedEvent) => void) => Promise<PluginListenerHandle>

Listen for download fail event in the App, let you know when a bundle download has failed

Param Type
eventName 'downloadFailed'
listenerFunc (state: DownloadFailedEvent) => void

Returns: Promise<PluginListenerHandle>

Since: 4.0.0


addListener('appReloaded', ...)

addListener(eventName: 'appReloaded', listenerFunc: () => void) => Promise<PluginListenerHandle>

Listen for reload event in the App, let you know when reload has happened

Param Type
eventName 'appReloaded'
listenerFunc () => void

Returns: Promise<PluginListenerHandle>

Since: 4.3.0


addListener('appReady', ...)

addListener(eventName: 'appReady', listenerFunc: (state: AppReadyEvent) => void) => Promise<PluginListenerHandle>

Listen for app ready event in the App, let you know when app is ready to use

Param Type
eventName 'appReady'
listenerFunc (state: AppReadyEvent) => void

Returns: Promise<PluginListenerHandle>

Since: 5.1.0


isAutoUpdateAvailable()

isAutoUpdateAvailable() => Promise<AutoUpdateAvailable>

Get if auto update is available (not disabled by serverUrl).

Returns: Promise<AutoUpdateAvailable>


getNextBundle()

getNextBundle() => Promise<BundleInfo | null>

Get the next bundle that will be used when the app reloads. Returns null if no next bundle is set.

Returns: Promise<BundleInfo | null>

Since: 6.8.0


Interfaces

AppReadyResult

Prop Type
bundle BundleInfo

BundleInfo

Prop Type
id string
version string
downloaded string
checksum string
status BundleStatus

UpdateUrl

Prop Type
url string

StatsUrl

Prop Type
url string

ChannelUrl

Prop Type
url string

DownloadOptions

This URL and versions are used to download the bundle from the server, If you use backend all information will be gived by the method getLatest. If you don't use backend, you need to provide the URL and version of the bundle. Checksum and sessionKey are required if you encrypted the bundle with the CLI command encrypt, you should receive them as result of the command.

Prop Type Description Default Since
url string The URL of the bundle zip file (e.g: dist.zip) to be downloaded. (This can be any URL. E.g: Amazon S3, a GitHub tag, any other place you've hosted your bundle.) |
version string The version code/name of this bundle/version |
sessionKey string The session key for the update, when the bundle is encrypted with a session key undefined 4.0.0
checksum string The checksum for the update, it should be in sha256 and encrypted with private key if the bundle is encrypted undefined 4.0.0

BundleId

Prop Type
id string

BundleListResult

Prop Type
bundles BundleInfo[]

ListOptions

Prop Type Description Default Since
raw boolean Whether to return the raw bundle list or the manifest. If true, the list will attempt to read the internal database instead of files on disk. false 6.14.0

ResetOptions

Prop Type
toLastSuccessful boolean

CurrentBundleResult

Prop Type
bundle BundleInfo
native string

MultiDelayConditions

Prop Type
delayConditions DelayCondition[]

DelayCondition

Prop Type Description
kind DelayUntilNext Set up delay conditions in setMultiDelay
value string

LatestVersion

Prop Type Description Since
version string Result of getLatest method 4.0.0
checksum string | 6
major boolean |
message string |
sessionKey string |
error string |
old string |
url string |
manifest ManifestEntry[] | 6.1

ManifestEntry

Prop Type
file_name string | null
file_hash string | null
download_url string | null

GetLatestOptions

Prop Type Description Default Since
channel string The channel to get the latest version for The channel must allow 'self_assign' for this to work undefined 6.8.0

ChannelRes

Prop Type Description Since
status string Current status of set channel 4.7.0
error string |
message string

SetChannelOptions

Prop Type
channel string
triggerAutoUpdate boolean

UnsetChannelOptions

Prop Type
triggerAutoUpdate boolean

GetChannelRes

Prop Type Description Since
channel string Current status of get channel 4.8.0
error string |
message string |
status string |
allowSet boolean

SetCustomIdOptions

Prop Type
customId string

BuiltinVersion

Prop Type
version string

DeviceId

Prop Type
deviceId string

PluginVersion

Prop Type
version string

AutoUpdateEnabled

Prop Type
enabled boolean

PluginListenerHandle

Prop Type
remove () => Promise<void>

DownloadEvent

Prop Type Description Since
percent number Current status of download, between 0 and 100. 4.0.0
bundle BundleInfo

NoNeedEvent

Prop Type Description Since
bundle BundleInfo Current status of download, between 0 and 100. 4.0.0

UpdateAvailableEvent

Prop Type Description Since
bundle BundleInfo Current status of download, between 0 and 100. 4.0.0

DownloadCompleteEvent

Prop Type Description Since
bundle BundleInfo Emit when a new update is available. 4.0.0

MajorAvailableEvent

Prop Type Description Since
version string Emit when a new major bundle is available. 4.0.0

UpdateFailedEvent

Prop Type Description Since
bundle BundleInfo Emit when a update failed to install. 4.0.0

DownloadFailedEvent

Prop Type Description Since
version string Emit when a download fail. 4.0.0

AppReadyEvent

Prop Type Description Since
bundle BundleInfo Emitted when the app is ready to use. 5.2.0
status string

AutoUpdateAvailable

Prop Type
available boolean

Type Aliases

BundleStatus

'success' | 'error' | 'pending' | 'downloading'

DelayUntilNext

'background' | 'kill' | 'nativeVersion' | 'date'

</docgen-api>

Listen to download events

  import { CapacitorUpdater } from '@capgo/capacitor-updater';

CapacitorUpdater.addListener('download', (info: any) => {
  console.log('download was fired', info.percent);
});

On iOS, Apple don't allow you to show a message when the app is updated, so you can't show a progress bar.

Inspiration

Contributors

jamesyoung1337 Thank you so much for your guidance and support, it was impossible to make this plugin work without you.

changelog

Changelog

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.

7.2.5 (2025-06-10)

Bug Fixes

  • remove shit who prevent release to work (37cf126)

7.2.4 (2025-06-10)

Bug Fixes

7.2.3 (2025-06-09)

Bug Fixes

  • better definition for download option (9ac3914)

7.2.2 (2025-06-02)

7.2.1 (2025-05-29)

Bug Fixes

  • update network constraints for emulators in DownloadWorkerManager (0ddc5bc)

7.2.0 (2025-05-29)

Features

  • enhance emulator support in download worker manager (44a0cc6)

7.1.0 (2025-05-29)

Features

  • fix direct update delay (8f758dc)

7.0.57 (2025-05-29)

7.0.56 (2025-05-29)

Bug Fixes

7.0.55 (2025-05-27)

Bug Fixes

7.0.54 (2025-05-19)

7.0.53 (2025-05-01)

Bug Fixes

7.0.52 (2025-04-28)

Bug Fixes

  • deps: update dependency com.google.code.gson:gson to v2.13.1 (#564) (e443fda)

7.0.51 (2025-04-28)

Bug Fixes

  • deps: update dependency androidx.work:work-runtime to v2.10.1 (#563) (a0e11fc)

7.0.50 (2025-04-21)

Bug Fixes

  • deps: update dependency com.google.android.gms:play-services-tasks to v18.3.0 (#562) (d93a178)

7.0.49 (2025-04-21)

Bug Fixes

  • deps: update dependency com.google.guava:guava to v33.4.8-android (#561) (e15ca19)

7.0.48 (2025-04-14)

Bug Fixes

  • deps: update dependency com.google.code.gson:gson to v2.13.0 (#559) (4357f49)

7.0.47 (2025-04-14)

Bug Fixes

  • deps: update dependency com.google.guava:guava to v33.4.7-android (#558) (85d1709)

7.0.46 (2025-04-11)

Bug Fixes

  • make better definition of defaultChannel (6aabc84)

7.0.45 (2025-04-07)

7.0.44 (2025-04-07)

7.0.43 (2025-04-03)

Bug Fixes

  • add missing import in SPM (de905d8)

7.0.42 (2025-04-02)

Bug Fixes

7.0.41 (2025-04-02)

7.0.40 (2025-03-31)

Bug Fixes

  • deps: update dependency com.google.guava:guava to v33.4.6-android (#554) (4b149b5)

7.0.39 (2025-03-29)

Bug Fixes

  • better message fail decrypt partial (c388305)

7.0.38 (2025-03-29)

Bug Fixes

  • brotli issue allow ignore for certain files (4e7a95e)

7.0.37 (2025-03-29)

Bug Fixes

  • encryption issue RSA latest ios (e799c1a)

7.0.36 (2025-03-27)

7.0.35 (2025-03-27)

Bug Fixes

  • remove more duplicated code (593d66c)

7.0.34 (2025-03-27)

Bug Fixes

  • remove duplicated function (5a73795)

7.0.33 (2025-03-27)

Bug Fixes

7.0.32 (2025-03-24)

Bug Fixes

  • deps: update dependency com.google.guava:guava to v33.4.5-android (#550) (61a725b)

7.0.31 (2025-03-24)

Bug Fixes

  • deps: update dependency com.google.android.gms:play-services-tasks to v18.2.1 (#549) (38b4790)

7.0.30 (2025-03-22)

Bug Fixes

  • checksum for unencrypted bundles (62961cb)

7.0.29 (2025-03-17)

7.0.28 (2025-03-04)

Bug Fixes

  • decrypt missing partial (012edb1)

7.0.27 (2025-03-04)

Bug Fixes

7.0.26 (2025-03-04)

Bug Fixes

  • enforce version properly (1de4d6a)

7.0.25 (2025-03-04)

Bug Fixes

7.0.24 (2025-03-02)

Bug Fixes

7.0.23 (2025-02-19)

Bug Fixes

  • android brotli edge case (30eecf8)

7.0.22 (2025-02-19)

Bug Fixes

7.0.21 (2025-02-19)

Bug Fixes

7.0.20 (2025-02-19)

Bug Fixes

7.0.19 (2025-02-19)

Bug Fixes

  • better logs and debug (2179792)
  • improve error handling manifest (a060842)

7.0.18 (2025-02-18)

Bug Fixes

7.0.17 (2025-02-17)

Bug Fixes

7.0.16 (2025-02-17)

Bug Fixes

  • deps: update dependency com.google.guava:guava to v33 (f1de630)

7.0.15 (2025-02-17)

Bug Fixes

7.0.14 (2025-02-17)

Bug Fixes

7.0.13 (2025-02-17)

Bug Fixes

7.0.12 (2025-02-17)

Bug Fixes

7.0.11 (2025-02-17)

Bug Fixes

7.0.10 (2025-02-17)

Bug Fixes

  • stop proposing eslint as well (5c0364f)

7.0.9 (2025-02-17)

Bug Fixes

  • prevent renovate to mess with ZipArchive (b3ac24d)

7.0.8 (2025-02-17)

Bug Fixes

  • use fucking exact as we should and stop renovate bot fucking the deps (c07b454)

7.0.7 (2025-02-17)

Bug Fixes

  • deps: update dependency com.google.code.gson:gson to v2.12.1 (#536) (9eae966)

7.0.6 (2025-02-17)

7.0.5 (2025-02-17)

Bug Fixes

7.0.4 (2025-02-17)

Bug Fixes

7.0.3 (2025-02-17)

Bug Fixes

7.0.2 (2025-02-09)

Bug Fixes

8.0.1 (2025-02-09)

Bug Fixes

8.0.0 (2025-02-09)

⚠ BREAKING CHANGES

  • upgrade to v7
  • delete old e2e

Features

Bug Fixes

6.14.11 (2025-02-08)

Bug Fixes

6.14.10 (2025-02-03)

Bug Fixes

  • deps: update dependency androidx.work:work-runtime to v2.10.0 (#532) (df7cd7f)

6.14.9 (2025-02-03)

6.14.8 (2025-01-27)

6.14.7 (2025-01-20)

Bug Fixes

  • deps: update dependency com.google.guava:guava to v32.1.3-jre (#523) (e9226a4)

6.14.6 (2025-01-20)

6.14.5 (2025-01-17)

Bug Fixes

6.14.4 (2025-01-17)

Bug Fixes

  • remove duplicate finish (8edf4d7)

6.14.3 (2025-01-17)

6.14.2 (2025-01-17)

Bug Fixes

6.14.1 (2025-01-17)

Bug Fixes

6.14.0 (2025-01-17)

Features

  • list({raw: true}) + better delete() (c5a47e8)

6.13.2 (2025-01-13)

6.13.1 (2025-01-13)

6.13.0 (2025-01-11)

Features

  • better iOS logs on download error (93ad1cb)

6.12.3 (2025-01-08)

Bug Fixes

  • ios version package repo (6d05f04)

6.12.2 (2025-01-08)

Bug Fixes

  • podlock use explicit version (80b1fed)

6.12.1 (2025-01-08)

Bug Fixes

6.12.0 (2025-01-07)

Features

  • add encryption for partial update (e58040d)
  • encrypt partial updates (v2) (bb9a298)
  • fix partial encryption on iOS (53ffd87)

6.11.2 (2025-01-06)

Bug Fixes

6.11.1 (2025-01-06)

Bug Fixes

6.11.0 (2025-01-06)

Features

  • Revert "feat: encrypt partial updates (v2)" (7326038)

6.10.0 (2025-01-06)

Features

  • encrypt partial updates (v2) (6abfe50)

6.9.0 (2025-01-03)

Features

  • getLatest({channel: string}) for Android (c742e0a)
  • getLatest({channel: string}) for iOS (68666a4)

6.8.0 (2025-01-03)

Features

  • preserve URL path after reload() (02304e0)

6.7.8 (2025-01-03)

Bug Fixes

  • fix delete the 'next' bundle will cause a crash (69f3eb2), closes #499
  • prevent deleting the 'next' bundle and improve error message on iOS (9132d97), closes #499

6.7.7 (2024-12-30)

Bug Fixes

6.7.7-alpha.3 (2024-12-26)

Bug Fixes

6.7.7-alpha.2 (2024-12-25)

Bug Fixes

6.7.7-alpha.1 (2024-12-25)

Bug Fixes

6.7.7-alpha.0 (2024-12-25)

Bug Fixes

6.7.6 (2024-12-19)

Bug Fixes

  • prevent a crash in download service (5502741)
  • prevent downloadFileBackground from starting in the background (8eabffb)

6.7.5 (2024-12-16)

6.7.4 (2024-12-09)

6.7.3 (2024-12-09)

6.7.2 (2024-12-08)

Bug Fixes

6.7.1 (2024-12-08)

Bug Fixes

6.7.0 (2024-12-08)

Features

  • add isAutoUpdateAvailable (76fc929)

6.6.5 (2024-12-05)

6.6.4 (2024-12-05)

6.6.3 (2024-12-05)

Bug Fixes

6.6.2 (2024-12-05)

Bug Fixes

  • diff for decrypt checksum (216de9b)

6.6.1 (2024-12-05)

Bug Fixes

  • checksum differs on android and ios (1a8a133)

6.6.0 (2024-12-05)

Features

  • use builtin files when as cache (8f45b75)

6.5.5 (2024-12-05)

Bug Fixes

6.5.4 (2024-12-04)

Bug Fixes

  • make download files scale better with multiplexing (e049e5a)

6.5.3 (2024-12-04)

Bug Fixes

6.5.2 (2024-12-04)

Bug Fixes

  • issue too big manifest (9078eae)
  • show download notif if download too long (38b7078)

6.5.1 (2024-12-04)

Bug Fixes

6.5.0 (2024-12-04)

Features

  • switch to okhttp to accept http/2 (2628e5e)

6.4.2 (2024-12-03)

6.4.1 (2024-11-26)

6.4.0 (2024-11-25)

Features

  • getChannel return defaultChannel (587e6e9)

6.3.22 (2024-11-25)

Bug Fixes

  • fix cleanupObsoleteVersions deleting versions used by capacitor (585a09e), closes #488

6.3.21 (2024-11-23)

Bug Fixes

6.3.20 (2024-11-20)

Bug Fixes

6.3.19 (2024-11-19)

Bug Fixes

  • switch to our new domain ( already used with redirect) (b7096e3)

6.3.18 (2024-11-19)

Bug Fixes

  • types error and message (db608e4)

6.3.17 (2024-11-08)

Bug Fixes

6.3.16 (2024-11-05)

Bug Fixes

6.3.15 (2024-11-04)

Bug Fixes

6.3.14 (2024-11-04)

6.3.13 (2024-11-04)

6.3.12 (2024-11-04)

Bug Fixes

  • android: fix isMainActivity (0edc124)

6.3.11 (2024-11-04)

6.3.10 (2024-10-22)

Bug Fixes

6.3.9 (2024-10-22)

Bug Fixes

6.3.8 (2024-10-16)

Bug Fixes

6.3.7 (2024-10-16)

Bug Fixes

  • getLatest with manifest (645192f)

6.3.6 (2024-10-16)

Bug Fixes

  • issue on IOS who make update get re download each time open if not install (a177a84)

6.3.5 (2024-10-15)

Bug Fixes

6.3.4 (2024-10-15)

Bug Fixes

6.3.3 (2024-10-15)

Bug Fixes

6.3.2 (2024-10-15)

Bug Fixes

6.3.1 (2024-10-12)

Bug Fixes

6.3.0 (2024-10-09)

Features

Bug Fixes

6.2.9 (2024-10-07)

6.2.8 (2024-10-07)

6.2.7 (2024-10-07)

6.2.6 (2024-10-07)

6.2.5 (2024-10-02)

Bug Fixes

6.2.4 (2024-09-30)

6.2.3 (2024-09-30)

6.2.2 (2024-09-30)

6.2.1 (2024-09-30)

6.2.0 (2024-09-23)

Features

6.1.34 (2024-09-23)

6.1.33 (2024-09-23)

6.1.32 (2024-09-16)

6.1.31 (2024-09-16)

6.1.30 (2024-09-16)

6.1.29 (2024-09-16)

6.1.28 (2024-09-10)

Bug Fixes

6.1.27 (2024-09-10)

Bug Fixes

6.1.26 (2024-09-10)

Bug Fixes

  • add missing publicKey TS (6be6c9e)

6.1.25 (2024-09-10)

Bug Fixes

6.1.24 (2024-09-10)

Bug Fixes

6.1.23 (2024-09-09)

6.1.22 (2024-09-09)

6.1.21 (2024-09-05)

Bug Fixes

  • not catched exeption android (4495a37)

6.1.20 (2024-09-02)

6.1.19 (2024-09-02)

6.1.18 (2024-08-27)

Bug Fixes

  • android: Fix checksum verification when encryption is not configured (0a96bfc)
  • do not bypass checksum (eccb60e)
  • do not decrypt checksum in ios when no key (69ea417)
  • do not decrypt if no key (105cc8c)
  • lint and work on android (bfd007c)
  • remove key in code (ef8c108)
  • remove old log (784e7ad)
  • remove signature as our checksum is enought (8706422)
  • remove useless log (485f2ce)
  • rename function and remove useless logs (ef37084)
  • reversed condition android (4189819)
  • typo (a9cbb8f)

6.1.17 (2024-08-27)

6.1.16 (2024-08-26)

6.1.15 (2024-08-26)

6.1.14 (2024-08-24)

Bug Fixes

  • android issue when not reachable (1c0a8d3)

6.1.13 (2024-08-23)

Bug Fixes

6.1.12 (2024-08-22)

Bug Fixes

  • add missing declaration unset channel ios (85ba89c)

6.1.11 (2024-08-22)

Bug Fixes

  • sign use same as session (c8b399a)

6.1.10 (2024-08-22)

Bug Fixes

6.1.9 (2024-08-22)

Bug Fixes

6.1.8 (2024-08-21)

Bug Fixes

6.1.7 (2024-08-21)

6.1.6 (2024-08-21)

Bug Fixes

  • use appUUID like in android (091859d)

6.1.5 (2024-08-21)

Bug Fixes

6.1.4 (2024-08-20)

6.1.3 (2024-08-20)

6.1.2 (2024-08-19)

6.1.1 (2024-08-19)

Bug Fixes

  • deps: update dependency com.android.tools.build:gradle to v8.5.2 (a471dc8)

6.1.0 (2024-08-16)

Features

6.0.70 (2024-08-16)

Bug Fixes

6.0.69 (2024-08-15)

Bug Fixes

  • message in logs for delay (90056f8)

6.0.68 (2024-08-15)

6.0.67 (2024-08-14)

6.0.66 (2024-08-14)

Bug Fixes

  • send download fail as it should (a2563c0)

6.0.65 (2024-08-14)

Bug Fixes

6.0.64 (2024-08-13)

Bug Fixes

6.0.63 (2024-08-13)

Bug Fixes

6.0.62 (2024-08-12)

6.0.61 (2024-08-12)

6.0.60 (2024-08-12)

6.0.59 (2024-08-11)

Bug Fixes

  • remove useless comments (7ac35fd)

6.0.58 (2024-08-10)

6.0.57 (2024-08-10)

Bug Fixes

6.0.56 (2024-08-07)

6.0.55 (2024-08-05)

Bug Fixes

6.0.54 (2024-08-05)

6.0.53 (2024-08-05)

6.0.52 (2024-08-04)

6.0.51 (2024-07-29)

Bug Fixes

  • deps: update dependency com.android.tools.build:gradle to v8.5.1 (4c603bc)

6.0.50 (2024-07-29)

6.0.49 (2024-07-29)

6.0.48 (2024-07-29)

6.0.47 (2024-07-22)

6.0.46 (2024-07-22)

6.0.45 (2024-07-22)

6.0.44 (2024-07-17)

6.0.43 (2024-07-17)

Bug Fixes

6.0.42 (2024-07-15)

6.0.41 (2024-07-15)

6.0.40 (2024-07-15)

6.0.39 (2024-07-12)

Bug Fixes

  • better doc of setmulti delay (0b93829)

6.0.38 (2024-07-08)

6.0.37 (2024-07-08)

6.0.36 (2024-07-01)

6.0.35 (2024-07-01)

6.0.34 (2024-07-01)

6.0.33 (2024-06-24)

6.0.32 (2024-06-24)

6.0.31 (2024-06-17)

Bug Fixes

  • deps: update dependency com.android.tools.build:gradle to v8.5.0 (ef4027d)

6.0.30 (2024-06-17)

6.0.29 (2024-06-17)

6.0.28 (2024-06-17)

6.0.27 (2024-06-10)

Bug Fixes

  • deps: update dependency com.google.code.gson:gson to v2.11.0 (507a0a8)

6.0.26 (2024-06-10)

6.0.25 (2024-06-10)

6.0.24 (2024-06-04)

6.0.23 (2024-06-03)

Bug Fixes

  • add better keywords npm (0dbd879)

6.0.22 (2024-06-03)

Bug Fixes

  • add better link to capgo (7a708e0)

6.0.21 (2024-06-03)

Bug Fixes

6.0.20 (2024-06-03)

6.0.19 (2024-06-03)

6.0.18 (2024-05-30)

Bug Fixes

6.0.17 (2024-05-30)

6.0.16 (2024-05-28)

Bug Fixes

  • deps: update dependency com.android.tools.build:gradle to v8.4.1 (8fab24c)

6.0.15 (2024-05-28)

6.0.14 (2024-05-28)

Bug Fixes

6.0.13 (2024-05-28)

Bug Fixes

6.0.12 (2024-05-28)

Bug Fixes

  • set package name to intents when using RECEIVER_NOT_EXPORTED (ea1eeee)

6.0.11 (2024-05-27)

Bug Fixes

  • make better message for checkRevert (4033de2)

6.0.10 (2024-05-24)

6.0.9 (2024-05-10)

Bug Fixes

6.0.8 (2024-05-06)

6.0.7 (2024-05-06)

6.0.6 (2024-05-06)

6.0.5 (2024-05-06)

6.0.4 (2024-05-01)

Bug Fixes

6.0.3 (2024-05-01)

Bug Fixes

  • revert change double folder (f0878a7)

6.0.2 (2024-04-30)

6.0.1 (2024-04-29)

Bug Fixes

6.0.1 (2024-04-29)

Bug Fixes

6.0.0 (2024-04-29)

⚠ BREAKING CHANGES

  • upgrade to capacitor v6

Features

  • upgrade to capacitor v6 (e3f761e)

5.9.5 (2024-04-29)

5.9.4 (2024-04-22)

5.9.3 (2024-04-22)

5.9.2 (2024-04-15)

5.9.1 (2024-04-15)

5.9.0 (2024-04-12)

Features

  • send old_version_name when set version and reset (e19ba30)

5.8.12 (2024-04-08)

Bug Fixes

5.8.11 (2024-04-08)

5.8.10 (2024-04-08)

5.8.9 (2024-04-02)

5.8.8 (2024-04-01)

5.8.7 (2024-04-01)

Bug Fixes

  • autoreset use more hight level functions (2b0d4d9)

5.8.6 (2024-04-01)

Bug Fixes

  • autoReset use better methods (2164d81)

5.8.5 (2024-04-01)

5.8.4 (2024-03-26)

Bug Fixes

5.8.3 (2024-03-26)

Bug Fixes

5.8.2 (2024-03-26)

Bug Fixes

5.8.1 (2024-03-26)

Bug Fixes

5.8.0 (2024-03-26)

Features

  • add auto reset to save app in crash state (5b49a34)

5.7.20 (2024-03-26)

Bug Fixes

5.7.19 (2024-03-26)

Bug Fixes

5.7.18 (2024-03-25)

5.7.17 (2024-03-22)

Bug Fixes

  • correct message debug make it iso Android ios (ad3ca27)

5.7.16 (2024-03-20)

5.7.15 (2024-03-20)

Bug Fixes

  • put back race condition prevention (5751a83)

5.7.14 (2024-03-19)

Bug Fixes

  • DispatchQueue.global for period check (e2d6cd1)

5.7.13 (2024-03-19)

Bug Fixes

5.7.12 (2024-03-19)

Bug Fixes

5.7.11 (2024-03-19)

Bug Fixes

5.7.10 (2024-03-19)

Bug Fixes

  • latest reco from android studio (dd07eee)

5.7.9 (2024-03-19)

Bug Fixes

5.7.8 (2024-03-19)

Bug Fixes

  • use best practices and remove dead code (e671aaa)

5.7.7 (2024-03-19)

Bug Fixes

  • lint and fllow android best practices (23fcdf5)

5.7.6 (2024-03-19)

Bug Fixes

  • prevent more crash by following android guideline better (68b358e)

5.7.5 (2024-03-19)

Bug Fixes

  • use android studio recomendations (fb5676e)

5.7.4 (2024-03-19)

5.7.3 (2024-03-18)

Bug Fixes

  • add missing progress event and missing stats (7c616e3)

5.7.2 (2024-03-18)

5.7.1 (2024-03-18)

5.7.0 (2024-03-18)

Features

  • add new stats event for unzip (6b716f4)

5.6.15 (2024-03-18)

5.6.14 (2024-03-18)

5.6.13 (2024-03-11)

5.6.12 (2024-03-11)

5.6.11 (2024-03-05)

5.6.10 (2024-03-05)

5.6.9 (2024-03-04)

5.6.8 (2024-03-01)

5.6.7 (2024-03-01)

Bug Fixes

5.6.6 (2024-02-29)

5.6.5 (2024-02-26)

Bug Fixes

  • android opening two download stream of the bundle (8ee743a)
  • trigger CI/CD (da88c2d)

5.6.4 (2024-02-26)

5.6.3 (2024-02-26)

5.6.2 (2024-02-24)

5.6.1 (2024-02-24)

5.6.0 (2024-02-24)

Features

  • allow data form getLatest (6cee5cd)

5.5.1 (2024-02-24)

Bug Fixes

  • add config in the api file (d6d6a85)

5.5.0 (2024-02-24)

Features

  • add default channel option (d92dcb7)

5.4.1 (2024-02-24)

Bug Fixes

5.4.0 (2024-02-24)

Features

5.3.57 (2024-02-19)

5.3.56 (2024-02-18)

5.3.55 (2024-02-18)

5.3.54 (2024-02-18)

Bug Fixes

  • deps: update dependency com.android.tools.build:gradle to v8.2.2 (975f6db)

5.3.53 (2024-02-18)

Bug Fixes

5.3.52 (2024-02-18)

Bug Fixes

5.3.51 (2024-02-18)

Bug Fixes

5.3.50 (2024-02-06)

5.3.49 (2024-02-01)

Bug Fixes

5.3.48 (2024-01-22)

Bug Fixes

5.3.47 (2024-01-22)

Bug Fixes

  • align checksum buffersize android to 5mb (51eeae8)

5.3.46 (2024-01-22)

Bug Fixes

  • possible memory leak ios checksum (cc7bebe)

5.3.45 (2024-01-22)

5.3.44 (2024-01-15)

5.3.43 (2024-01-08)

5.3.42 (2024-01-08)

Bug Fixes

  • deps: update dependency com.android.tools.build:gradle to v8.2.1 (b9cd00c)

5.3.41 (2024-01-01)

5.3.40 (2023-12-18)

Bug Fixes

  • deps: update dependency com.android.tools.build:gradle to v8.2.0 (b00337c)

5.3.39 (2023-12-18)

5.3.38 (2023-12-11)

5.3.37 (2023-12-11)

5.3.36 (2023-12-07)

Bug Fixes

  • missing error when network fail (ae71a69)

5.3.35 (2023-11-27)

5.3.34 (2023-11-21)

5.3.33 (2023-11-21)

5.3.32 (2023-11-20)

5.3.31 (2023-11-20)

Bug Fixes

  • deps: update dependency com.android.tools.build:gradle to v8.1.4 (dbcacf6)

5.3.30 (2023-11-20)

5.3.29 (2023-11-20)

Bug Fixes

5.3.28 (2023-11-11)

Bug Fixes

5.3.27 (2023-11-11)

Bug Fixes

  • add better error message for appId (e2201cf)

5.3.26 (2023-11-06)

5.3.25 (2023-10-31)

Bug Fixes

  • prevent crash from unwrapping (1ee3aee)

5.3.24 (2023-10-30)

5.3.23 (2023-10-23)

Bug Fixes

5.3.22 (2023-10-23)

Bug Fixes

  • implementation scheduler (d45beca)

5.3.21 (2023-10-23)

5.3.20 (2023-10-17)

5.3.19 (2023-10-16)

5.3.18 (2023-10-16)

5.3.17 (2023-10-16)

5.3.16 (2023-10-16)

5.3.15 (2023-10-15)

5.3.14 (2023-10-15)

5.3.13 (2023-10-09)

Bug Fixes

  • add proguard file in npm (cb9fc31)

5.3.12 (2023-10-09)

5.3.11 (2023-10-05)

Bug Fixes

5.3.10 (2023-10-02)

Bug Fixes

  • deps: update dependency com.android.tools.build:gradle to v8.1.2 (3d1320d)

5.3.9 (2023-09-30)

Bug Fixes

5.3.8 (2023-09-30)

Bug Fixes

5.3.7 (2023-09-30)

Bug Fixes

5.3.6 (2023-09-30)

Bug Fixes

  • bild cache ios and android (ef269df)
  • download not reject android (2ba6645)

5.3.5 (2023-09-30)

Bug Fixes

5.3.4 (2023-09-29)

5.3.3 (2023-09-29)

Bug Fixes

5.3.2 (2023-09-27)

Bug Fixes

5.3.1 (2023-09-14)

Bug Fixes

5.3.0 (2023-09-13)

Features

  • allow set responseTimeout and add unsetChannel (935c01b)

5.2.35 (2023-09-13)

Bug Fixes

5.2.34 (2023-09-11)

5.2.33 (2023-09-04)

5.2.32 (2023-08-31)

Bug Fixes

5.2.31 (2023-08-31)

5.2.30 (2023-08-29)

5.2.29 (2023-08-29)

Bug Fixes

  • deps: update dependency com.android.tools.build:gradle to v8.1.1 (987fba9)

5.2.28 (2023-08-29)

5.2.27 (2023-08-29)

5.2.26 (2023-08-28)

5.2.25 (2023-08-28)

5.2.24 (2023-08-27)

5.2.23 (2023-08-24)

Bug Fixes

  • better res on notify function (c5e49a4)

5.2.22 (2023-08-24)

Bug Fixes

5.2.21 (2023-08-24)

Bug Fixes

5.2.20 (2023-08-22)

Bug Fixes

  • handle update issue direct (b4e96ba)

5.2.19 (2023-08-22)

Bug Fixes

5.2.18 (2023-08-22)

Bug Fixes

  • ios: set error flag to false for non-error actions (74c0654)

5.2.17 (2023-08-21)

5.2.16 (2023-08-21)

Bug Fixes

  • android direct download (1784c75)

5.2.15 (2023-08-21)

5.2.14 (2023-08-18)

Bug Fixes

5.2.13 (2023-08-18)

Bug Fixes

  • semaphore issue android (0da47c9)

5.2.12 (2023-08-18)

Bug Fixes

  • instead of time use semaphore (942146a)

5.2.11 (2023-08-17)

Bug Fixes

  • only apply directUpdate on boot app not pause (722a2ae)

5.2.10 (2023-08-17)

Bug Fixes

5.2.9 (2023-08-17)

Bug Fixes

  • appReady ios when no update (38759ab)

5.2.8 (2023-08-17)

Bug Fixes

  • add appReady when autoUpdate disabled (71d7dab)

5.2.7 (2023-08-17)

Bug Fixes

  • send appReady if auto update disabled (d56d86f)

5.2.6 (2023-08-17)

Bug Fixes

5.2.5 (2023-08-16)

Bug Fixes

5.2.4 (2023-08-16)

Bug Fixes

  • make log more clear for direct download (33a4cd4)

5.2.3 (2023-08-16)

Bug Fixes

5.2.2 (2023-08-16)

5.2.1 (2023-08-16)

Bug Fixes

5.2.0 (2023-08-16)

Features

5.1.0 (2023-08-15)

Features

5.0.21 (2023-08-14)

5.0.20 (2023-08-11)

Bug Fixes

5.0.19 (2023-08-10)

5.0.18 (2023-08-09)

5.0.17 (2023-08-07)

5.0.16 (2023-08-06)

Bug Fixes

5.0.15 (2023-07-31)

Bug Fixes

  • deps: update dependency com.android.tools.build:gradle to v8.1.0 (6c39969)

5.0.14 (2023-07-31)

5.0.13 (2023-07-27)

Bug Fixes

5.0.12 (2023-07-24)

Bug Fixes

  • isMainActivity for old devices (2124bf1)

5.0.11 (2023-07-24)

5.0.10 (2023-07-18)

5.0.9 (2023-07-18)

5.0.8 (2023-07-17)

5.0.7 (2023-07-15)

5.0.6 (2023-07-15)

5.0.5 (2023-07-14)

Bug Fixes

5.0.4 (2023-07-14)

Bug Fixes

5.0.3 (2023-07-14)

Bug Fixes

  • bundleExists check, more checks to prevent Our App with capacitor-updater crashes #108 (3c75026)
  • issue decrypt wrong format (85a363e)
  • remove spam log about getting info (dc2498e)

5.0.2 (2023-07-14)

Bug Fixes

5.0.1 (2023-06-01)

Bug Fixes

  • test fix commit and see if CI is sane now (ae6fbc0)

5.0.0 (2023-06-01)

⚠ BREAKING CHANGES

  • test fix commit and see if CI is sane now
  • test bump
  • update to capacitor 5, remove deprecated method
  • android: Java and TypeScript interfaces have changed for some plugin methods to support returning VersionInfo
  • the url config change and not compatible with the past one

Features

  • :boom: use the new auto update system (109ebc2)
  • add allowEmulatorProd option to ignore store start app (94e2799)
  • add android decrypt RSA AES (946354e)
  • add background download android (0d4aac3)
  • add base of ios, download file (3be5b53)
  • add cancel delay (e06caa2)
  • add checksum (226bcdb)
  • add checksum check + lint (f4e2649)
  • add current method (64f3a24)
  • add currentNative to get current (962ec3d)
  • add default private key to plugin (dc1949e)
  • add delayupdate (d51528c)
  • add disableAutoUpdateUnderNative and disableAutoUpdateToMajor capability (7e0d1d2)
  • add download event (36c901b)
  • add download_complete and download_% events (0ed8022)
  • add download_fail event (c03a0db)
  • add DownloadComplete event and remove updateAvailable (1cbc934)
  • add emcryption for manual (04e87a8)
  • add event when fail install (e68a4d3)
  • add getchannel (52fb699)
  • add getId method for version by device control (b733873)
  • add headers to getLatest for future usage (1dbd90f)
  • add just and reload (b9b17cb)
  • add majorAvailable event (48ceca0)
  • add methods to decouple update (a710f96)
  • add noNeedUpdate event (8aa92e3)
  • add os version in metadata (664d992)
  • add persistency android (e89d82d)
  • add pluginVersion send to server (6453efb)
  • add private key system to have end to end encryption (5f3bd66)
  • add reset method to revert to original (78ae091)
  • add resetWhenUpdate system (17b0326)
  • add setChannel method (4cbd77d)
  • add setCustomId method (8864704)
  • add stats for app_moved_to_foreground app_moved_to_background (cab7878)
  • add stats for decrypt issue (c1bf966)
  • add stats methods (53a50d7)
  • add timeout in request (bfdc5cd)
  • add to download event version (2069379)
  • add updateAvailable event (75af960)
  • add versionCode in stats and update (bfe2ce4)
  • add versionName and reload + WIP auto update (cae43cc)
  • add web definition (7f70a1c)
  • allow capacitor 5 apps (5a5cb5d)
  • allow override version (31faecd)
  • allow reset to auto update version + add CI (1b946c1)
  • android: download method bubbles exception to client (0abc94e)
  • android: support notifyAppReady() in manual mode (b894788)
  • disable autoupdate in livereload mode + warning (d3c2838)
  • end-to-end encryption work on ios (5b1c414)
  • expose getLatest in js (813fee4)
  • listener for app reloaded (5783f53)
  • make auto update by default (a0cede5)
  • make auto update revert if fail to load (08d7811)
  • make hotreload work in Android (be1278f)
  • make live update work in IOS and Android (00fd99c)
  • make unzip and copy step (bd45727)
  • multi delay (fb42865)
  • release minor version for new feature availability (91d7d77)
  • remove allowEmulatorProd and send it to server instead (dbfe318)
  • reset on update by default. (f8272f2)
  • success and error callback sending stats (4cc76da)
  • test bump (756caff)
  • transfor android and ios with necessary base (1080808)
  • update to capacitor 5, remove deprecated method (e342d9c)
  • use post instead of get for update (f763cb5)

Bug Fixes

4.61.10 (2023-05-31)

⚠ BREAKING CHANGES

  • test bump
  • update to capacitor 5, remove deprecated method
  • android: Java and TypeScript interfaces have changed for some plugin methods to support returning VersionInfo
  • the url config change and not compatible with the past one

Features

  • :boom: use the new auto update system (109ebc2)
  • add allowEmulatorProd option to ignore store start app (94e2799)
  • add android decrypt RSA AES (946354e)
  • add background download android (0d4aac3)
  • add base of ios, download file (3be5b53)
  • add cancel delay (e06caa2)
  • add checksum (226bcdb)
  • add checksum check + lint (f4e2649)
  • add current method (64f3a24)
  • add currentNative to get current (962ec3d)
  • add default private key to plugin (dc1949e)
  • add delayupdate (d51528c)
  • add disableAutoUpdateUnderNative and disableAutoUpdateToMajor capability (7e0d1d2)
  • add download event (36c901b)
  • add download_complete and download_% events (0ed8022)
  • add download_fail event (c03a0db)
  • add DownloadComplete event and remove updateAvailable (1cbc934)
  • add emcryption for manual (04e87a8)
  • add event when fail install (e68a4d3)
  • add getchannel (52fb699)
  • add getId method for version by device control (b733873)
  • add headers to getLatest for future usage (1dbd90f)
  • add just and reload (b9b17cb)
  • add majorAvailable event (48ceca0)
  • add methods to decouple update (a710f96)
  • add noNeedUpdate event (8aa92e3)
  • add os version in metadata (664d992)
  • add persistency android (e89d82d)
  • add pluginVersion send to server (6453efb)
  • add private key system to have end to end encryption (5f3bd66)
  • add reset method to revert to original (78ae091)
  • add resetWhenUpdate system (17b0326)
  • add setChannel method (4cbd77d)
  • add setCustomId method (8864704)
  • add stats for app_moved_to_foreground app_moved_to_background (cab7878)
  • add stats for decrypt issue (c1bf966)
  • add stats methods (53a50d7)
  • add timeout in request (bfdc5cd)
  • add to download event version (2069379)
  • add updateAvailable event (75af960)
  • add versionCode in stats and update (bfe2ce4)
  • add versionName and reload + WIP auto update (cae43cc)
  • add web definition (7f70a1c)
  • allow capacitor 5 apps (5a5cb5d)
  • allow override version (31faecd)
  • allow reset to auto update version + add CI (1b946c1)
  • android: download method bubbles exception to client (0abc94e)
  • android: support notifyAppReady() in manual mode (b894788)
  • disable autoupdate in livereload mode + warning (d3c2838)
  • end-to-end encryption work on ios (5b1c414)
  • expose getLatest in js (813fee4)
  • listener for app reloaded (5783f53)
  • make auto update by default (a0cede5)
  • make auto update revert if fail to load (08d7811)
  • make hotreload work in Android (be1278f)
  • make live update work in IOS and Android (00fd99c)
  • make unzip and copy step (bd45727)
  • multi delay (fb42865)
  • release minor version for new feature availability (91d7d77)
  • remove allowEmulatorProd and send it to server instead (dbfe318)
  • reset on update by default. (f8272f2)
  • success and error callback sending stats (4cc76da)
  • test bump (756caff)
  • transfor android and ios with necessary base (1080808)
  • update to capacitor 5, remove deprecated method (e342d9c)
  • use post instead of get for update (f763cb5)

Bug Fixes

Changelog

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.