@capacitor/live-updates
TypeScript icon, indicating that this package has built-in type declarations

0.2.1 • Public • Published

@capacitor/live-updates

Official Live Updates plugin for Capacitor

Install

npm install @capacitor/live-updates
npx cap sync

API

sync()

sync() => Promise<LiveUpdateResult>

Sync the app with Live Updates

Returns: Promise<LiveUpdateResult>


setConfig(...)

setConfig(config: LiveUpdateConfig) => Promise<void>
Param Type
config LiveUpdateConfig

getConfig()

getConfig() => Promise<LiveUpdateConfig>

Returns: Promise<LiveUpdateConfig>


resetConfig()

resetConfig() => Promise<void>

reload()

reload() => Promise<void>

Interfaces

SyncResult

Prop Type
liveUpdate LiveUpdate
snapshot Snapshot | null
source 'download' | 'cache'
activeApplicationPathChanged boolean

LiveUpdate

Prop Type
appId string
channel string

Snapshot

Prop Type
id string
buildId string

LiveUpdateError

Prop Type
appId string
failStep 'CHECK' | 'DOWNLOAD' | 'COPY' | 'UNPACK' | 'VERIFY' | 'UPDATE' | 'CANCEL'
message string

Type Aliases

LiveUpdateResult

SyncResult | LiveUpdateError

LiveUpdateConfig

Partial<LiveUpdate> & { autoUpdateMethod?: 'none' | 'background'; strategy?: 'zip' | 'differential'; enabled?: boolean; maxVersions?: number; }

Partial

Make all properties in T optional

{ [P in keyof T]?: T[P]; }

Readme

Keywords

Package Sidebar

Install

npm i @capacitor/live-updates

Weekly Downloads

8,760

Version

0.2.1

License

Commercial

Unpacked Size

66.1 kB

Total Files

22

Last publish

Collaborators

  • dtarnawsky
  • mark-ionic
  • itschaced
  • it_mike_s
  • jpender
  • ionicjs
  • jcesarmobile