@oukek/capacitor-updater
v1.0.0
Published
检测 appstore 更新版本
Readme
@oukek/capacitor-updater
检测 appstore 更新版本
Install
npm install @oukek/capacitor-updater
npx cap syncAPI
getCurrentVersion()
getCurrentVersion() => Promise<{ version: string; build: string; }>获取当前安装的应用版本号
Returns: Promise<{ version: string; build: string; }>
getStoreVersion(...)
getStoreVersion(options?: { appId?: string | undefined; } | undefined) => Promise<{ version: string; releaseNotes?: string; }>获取 App Store 上的最新版本号
| Param | Type | Description |
| ------------- | -------------------------------- | --------------- |
| options | { appId?: string; } | 可选参数,可以指定 appId |
Returns: Promise<{ version: string; releaseNotes?: string; }>
openAppStore(...)
openAppStore(options?: { appId?: string | undefined; } | undefined) => Promise<void>跳转到 App Store 的应用下载页面
| Param | Type | Description |
| ------------- | -------------------------------- | --------------- |
| options | { appId?: string; } | 可选参数,可以指定 appId |
