0.3.1 • Published 11 months ago
@capacitor/live-updates v0.3.1
@capacitor/live-updates
Official Live Updates plugin for Capacitor
Install
npm install @capacitor/live-updates
npx cap sync
API
sync(...)
sync(progress: ((percentage: number) => void) | undefined = undefined) => Promise<SyncResult>
Sync the app with Live Updates. Optionally takes a progress callback.
Returns: Promise<SyncResult>
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 |
LiveUpdateConfig
Prop | Type |
---|---|
appId | string |
channel | string |
autoUpdateMethod | AutoUpdateMethod |
maxVersions | number |
key | string |
Type Aliases
LiveUpdateResult
SyncResult | LiveUpdateError
AutoUpdateMethod
'none' | 'background'
LiveUpdateConfig
Partial<LiveUpdate> & { autoUpdateMethod?: 'none' | 'background'; strategy?: 'zip' | 'differential'; enabled?: boolean; maxVersions?: number; }
Partial
Make all properties in T optional
{ P in keyof T?: TP; }
0.3.0
11 months ago
0.3.1
11 months ago
0.2.1
1 year ago
0.2.0
1 year ago
0.1.3
1 year ago
0.1.2
1 year ago
0.1.1
1 year ago
0.1.1-beta.6
1 year ago
0.1.1-beta.5
2 years ago
0.1.1-beta.2
2 years ago
0.1.1-beta.1
2 years ago
0.1.1-beta.0
2 years ago
0.1.1-beta.4
2 years ago
0.1.1-beta.3
2 years ago
0.1.0
2 years ago
0.0.3
2 years ago
0.0.2
2 years ago
0.0.1
3 years ago