跳过内容

Functions and settings

GitHub

Updater插件配置

Updater插件配置部分

查看Github README for more information.

CapacitorUpdater可以配置以下选项:

属性类型描述默认值
appReadyTimeoutnumber配置native插件在考虑更新失败之前等待的毫秒数。可用于Android、iOS和Electron。10000 // (10 seconds)
responseTimeoutnumber配置native插件在考虑API超时之前等待的毫秒数。可用于Android、iOS和Electron。20000 // (20 seconds)
autoDeleteFailedboolean配置插件是否自动删除失败的包。可用于Android、iOS和Electron。true
autoDeletePreviousboolean配置插件是否在成功更新后自动删除之前的包。可用于Android、iOS和Electron。true
autoUpdateboolean | ‘off’ | ‘atBackground’ | ‘atInstall’ | ‘onLaunch’ | ‘always’ | ‘onlyDownload’配置插件如何通过更新服务器使用自动更新。true与“atBackground”相同,false与“off”相同。- off:禁用自动更新- atBackground:在应用程序切换到后台时自动检查和下载,然后在应用程序切换到后台时应用- atInstall:仅在新安装或原生应用程序更新后立即应用,否则使用atBackground- onLaunch:在启动时立即应用,否则在启动检查后使用atBackground- always:在自动更新运行时立即应用- onlyDownload:自动检查和下载,然后在应用程序切换到后台时立即应用。可用于Android、iOS和Electron。”atBackground” // true is still accepted
resetWhenUpdateboolean自动删除之前下载的捆绑包,当设备上安装了新版本的本机应用程序包时。可用于Android、iOS和Electron。true
updateUrlstring配置更新检查发送到的URL/端点。可用于Android、iOS和Electron。https://plugin.capgo.app/updates
channelUrlstring配置用于频道操作的URL/端点。可用于Android、iOS和Electron。https://plugin.capgo.app/channel_self
statsUrlstring配置更新统计信息发送到的URL/端点。可用于Android、iOS和Electron。设置为“”以禁用统计报告。https://plugin.capgo.app/stats
publicKeystring配置用于端到端实时更新加密的公钥。版本2。可用于Android、iOS和Electron。undefined6.2.0
versionstring配置当前应用程序的版本。这将用于第一个更新请求。如果未设置,插件将从本机code中获取版本。可用于Android、iOS和Electron。undefined4.17.48
directUpdateboolean | ‘always’ | ‘atInstall’ | ‘onLaunch’已弃用。使用“atInstall”、“onLaunch”或“always”模式代替:autoUpdate。该选项仍然支持现有应用程序。- false:永不进行直接更新- atInstall:与autoUpdate:“atInstall”相同- onLaunch:与autoUpdate:“onLaunch”相同- always:与autoUpdate:“always”相同- true:与“always”相同,以便于向后兼容。可用于Android、iOS和Electron。false5.1.0
autoSplashscreenboolean自动隐藏启动屏幕,当使用即时应用模式时会自动处理。当启用时,插件将在应用程序更新或无需更新时自动隐藏启动屏幕。这消除了手动监听appReady事件并调用SplashScreen.hide()的需要。仅在autoUpdate设置为“atInstall”,“onLaunch”或“always”时才有效。为了保持向后兼容,仍支持Legacy直接更新值。需要安装并配置@capacitor/splash-screen插件,launchAutoHide设置为false。需要启用自动更新。适用于Android和iOS。false7.6.0
periodCheckDelaynumber配置更新检查的延迟时间,单位为秒。适用于Android、iOS和Electron。不能小于600秒(10分钟)。600 // (10 minutes)
localS3boolean配置CLI使用本地服务器进行测试或自托管更新服务器。undefined4.17.48
localHoststring配置CLI使用本地服务器进行测试或自托管更新服务器。undefined4.17.48
localWebHoststring配置CLI使用本地服务器进行测试或自托管更新服务器。undefined4.17.48
localSupastring配置CLI使用本地服务器进行测试或自托管更新服务器。undefined4.17.48
localSupaAnonstring配置CLI使用本地服务器进行测试。undefined4.17.48
localApistring配置CLI使用本地api进行测试。undefined6.3.3
localApiFilesstring配置CLI使用本地文件api进行测试。undefined6.3.3
allowModifyUrlboolean允许插件动态从JavaScript侧修改updateUrl、statsUrl和channelUrl。false5.4.0
defaultChannelstring设置应用程序的默认频道在配置中。大小写敏感。这将设置将覆盖云中设置的默认频道,但仍会尊严覆盖在云中进行的设置。undefined5.5.0
appIdstring配置应用程序ID在配置中。undefined6.0.0
keepUrlPathAfterReloadboolean配置插件以在重新加载后保留URL路径。警告:当重新加载时,‘window.history’将被清除。false6.8.0
disableJSLoggingboolean禁用JavaScript日志的插件。如果为真,插件将不会在JavaScript控制台中记录。只有本机日志会被执行false7.3.0
shakeMenuboolean启用抖动手势以显示更新菜单用于调试/测试目的false7.5.0

capacitor.config.json:

{
"plugins": {
"CapacitorUpdater": {
"appReadyTimeout": 1000 // (1 second),
"responseTimeout": 10 // (10 second),
"autoDeleteFailed": false,
"autoDeletePrevious": false,
"autoUpdate": "onlyDownload",
"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,
"autoSplashscreen": 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,
"disableJSLogging": undefined,
"shakeMenu": undefined
}
}
}

capacitor.config.ts:

import { CapacitorConfig } from '@capacitor/cli';
const config: CapacitorConfig = {
plugins: {
CapacitorUpdater: {
appReadyTimeout: 1000 // (1 second),
responseTimeout: 10 // (10 second),
autoDeleteFailed: false,
autoDeletePrevious: false,
autoUpdate: 'onlyDownload',
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,
autoSplashscreen: 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,
disableJSLogging: undefined,
shakeMenu: undefined,
},
},
};
export default config;

方法

方法

notifyAppReady()

notifyAppReady()
notifyAppReady() => Promise<AppReadyResult>

通知Capacitor更新器当前包正在运行(如果此方法在每次应用启动时未被调用,则会发生回滚) 默认情况下,此方法应在应用启动后第10秒内被调用,否则会发生回滚。 通过{@link appReadyTimeout}更改此行为

返回值 Promise<AppReadyResult>


setUpdateUrl(…)

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

设置应用更新的URL,这将用于检查更新

参数类型描述
optionsUpdateUrl包含用于检查更新的 URL。

自: 5.4.0


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

设置应用程序的 statsUrl,用于发送统计信息。传递一个空字符串将禁用统计信息收集。

参数类型描述
optionsStatsUrl包含用于发送统计信息的 URL。

自: 5.4.0


setChannelUrl(…)

标题:setChannelUrl(…)
setChannelUrl(options: ChannelUrl) => Promise<void>

设置应用的 channelUrl,这将用于设置通道。

参数类型描述
optionsChannelUrl包含用于设置通道的 URL。

自: 5.4.0


download(…)

下载(…)
download(options: DownloadOptions) => Promise<BundleInfo>

从提供的 URL 下载一个新的压缩包,应该是一个 zip 文件,包含所有文件或一个唯一 id 内的所有文件

参数类型描述
optionsDownloadOptions用于下载新压缩包 zip 的 {@link DownloadOptions}

返回: Promise<BundleInfo>


next(…)

下一步
next(options: BundleId) => Promise<BundleInfo>

在应用程序重新加载时使用的下一个捆绑包设置为

参数类型描述
optionsBundleId包含应用程序重新启动时设置的下一个捆绑包的ID。 {@link 捆绑包信息.id}

返回值 Promise<BundleInfo>


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

设置当前捆绑包并立即重新加载应用程序.

参数类型描述
optionsBundleIdA {@link BundleId}对象,包含要设置为当前的新包ID。

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

从原生应用存储中删除指定包。使用 {@link list} 来获取存储的 Bundle IDs。

参数类型描述
optionsBundleId一个 {@link} 对象,包含要删除的捆绑包的 ID(注意,这是捆绑包 ID,而不是版本名称) BundleIdlist(…)

名为“list(…)

复制到剪贴板
list(options?: ListOptions | undefined) => Promise<BundleListResult>

Param

Type描述一个 {@link}
optionsListOptions__CAPGO_KEEP_0__ 列表选项__CAPGO_KEEP_0__

返回值: Promise<BundleListResult>


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

重置应用到 builtin 应用程序包(发送到 Apple App Store / Google Play Store)或最后成功加载的包。

参数类型描述
optionsResetOptions包含 {@link} ResetOptions.toLastSuccessful}, true 重置为内置包并 false 会重置为最后一次成功加载的包。

current() => Promise<CurrentBundleResult>

获取当前包,如果没有设置则返回 builtin. currentNative 是设备上安装的原始包

返回: Promise<CurrentBundleResult>


reload() => Promise<void>

重新加载视图


setMultiDelay(…)

标题:setMultiDelay(…)
setMultiDelay(options: MultiDelayConditions) => Promise<void>

设置一个 {@link DelayCondition} 数组,包含插件将使用的延迟更新条件。 当所有条件都满足后,更新过程将重新启动,更新将在后台或杀死应用后安装。 对于 "kind",值应为 ISO8601 日期字符串。 对于 "kind",值应为毫秒数。 对于 "kind",值应为版本号。 对于 "kind",值不被使用。 该函数在选项 kill 时会触发不一致的行为,会在第一次杀死应用后触发更新,而不是在下一次后台运行时。 将在未来的重大版本中修复。 ParamDelayCondition date kind background kind nativeVersion kind kill kind

kind类型描述
optionsMultiDelayConditions包含 {@link 多延迟条件} 数组的条件来设置

Since: 4.3.0


cancelDelay() => Promise<void>

取消一个 {@link 延迟条件} 来立即处理更新.

自从: 4.0.0


getLatest(…)

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

从更新URL获取最新的捆绑包

参数类型
optionsGetLatestOptions

返回: Promise<LatestVersion>

自从: 4.0.0


setChannel(…)

setChannel(…)部分
setChannel(options: SetChannelOptions) => Promise<ChannelRes>

设置此设备的插件管理的本地频道。频道必须 allow_device_self_set 必须启用才能正常工作。

setChannel() validates the channel with the backend, then stores the selected channel locally on the device. It does not create or update a backend Device Override, so the device will not appear as overridden in the Capgo dashboard. Only assignments created from the dashboard or the Public API are shown in the Device Override UI.

重要注意事项:

  • 不要在启动时使用此方法设置频道。请在__CAPGO_KEEP_0__配置中使用 defaultChannel in your Capacitor config instead.
  • 公共频道不能自行分配。
  • 如果频道标记为 , 调用 public会返回错误。要使用公共频道,请调用 setChannel() - 设备将自动切换到匹配的公共频道。 unsetChannel() __CAPGO_KEEP_0__
  • 使用 listChannels() 来发现哪些频道可用并且是否允许自赋值。
参数类型描述
optionsSetChannelOptions是否是 {@link SetChannelOptions}频道设置

返回: Promise<ChannelRes>

自从: 4.7.0


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

清除此设备上的插件管理的本地频道。该操作仅清除本地存储的频道,不删除仪表板或公共__CAPGO_KEEP_0__设备覆盖记录。 setChannel()调用此方法后,正常频道顺序适用:存在仪表板或公共API设备覆盖记录仍然有效;否则设备可以回落到匹配公共/默认频道(根据平台、设备类型、构建类型)。

After calling this method, normal channel precedence applies: an existing Dashboard or Public API Device Override still wins; otherwise the device can fall back to the matching public/default channel for its conditions (platform, device type, build type).

您想将设备移回默认更新轨道

  • 您想使用公共频道(由于公共频道无法自行分配
  • 参数 setChannel())
类型Since:
optionsUnsetChannelOptions

getChannel() 4.7.0


标题“getChannel()”

section
getChannel() => Promise<GetChannelRes>

获取该设备的频道

返回: Promise<GetChannelRes>

自: 4.8.0


listChannels() => Promise<ListChannelsResult>

列出该设备可用的所有频道。返回与设备当前环境(平台、模拟器/真实设备、开发/生产构建)兼容的频道,并且该频道是公共频道或允许自我赋值。

结果中的每个频道都包括:

  • public: 如果 true,这是一个 默认频道. 您不能使用自行分配的方式将其分配给它。 setChannel(). 如果您使用 unsetChannel(), 删除设备的频道分配,设备将自动从公共频道接收更新。
  • allow_self_set: 如果 true, 这是一个 自分配频道。您可以使用 setChannel().

explicitly 将设备分配到此频道。 Promise<ListChannelsResult>

Returns: 7.5.0


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

设置一个自定义 ID 以标识此设备

参数类型描述
optionsSetCustomIdOptions是 {@link SetCustomIdOptions} 中的自定义 ID

4.9.0


getBuiltinVersion()

标题:获取内置版本
getBuiltinVersion() => Promise<BuiltinVersion>

获取本机应用程序版本或配置文件中设置的内置版本

Returns: Promise<BuiltinVersion>

自从: 5.2.0


getDeviceId() => Promise<DeviceId>

获取用于识别设备的唯一 ID(发送到自动更新服务器)

Returns: Promise<DeviceId>


getPluginVersion()

标题:getPluginVersion()
getPluginVersion() => Promise<PluginVersion>

获取本地 Capacitor 更新器插件版本(发送到自动更新服务器)

Returns: Promise<PluginVersion>


是否自动更新

isAutoUpdateEnabled()
isAutoUpdateEnabled() => Promise<AutoUpdateEnabled>

获取自动更新配置状态

返回值 Promise<AutoUpdateEnabled>


removeAllListeners() => Promise<void>

移除此插件的所有监听器

1.0.0


添加下载事件监听器(…)

Section titled “addListener(‘download’, …)”
addListener(eventName: 'download', listenerFunc: (state: DownloadEvent) => void) => Promise<PluginListenerHandle>

在 App 中监听包下载事件。下载开始、下载中和下载完成时触发一次。 此事件将返回下载百分比

参数类型
eventName’download’
listenerFunc(state: DownloadEvent) => void

返回值: Promise<PluginListenerHandle>

自: 2.0.11


添加监听器(‘无需更新’,…)

标题:添加监听器(‘无需更新’,…)
addListener(eventName: 'noNeedUpdate', listenerFunc: (state: NoNeedEvent) => void) => Promise<PluginListenerHandle>

监听无需更新事件,适用于每次启动应用时强制检查

参数类型
eventName’noNeedUpdate’
listenerFunc(state: NoNeedEvent) => void

返回: Promise<PluginListenerHandle>

自从: 4.0.0


添加监听器(‘updateAvailable’,…)

标题:添加监听器(‘updateAvailable’,…)
addListener(eventName: 'updateAvailable', listenerFunc: (state: UpdateAvailableEvent) => void) => Promise<PluginListenerHandle>

监听可用更新事件,适用于每次启动应用时强制检查

参数类型
eventName’updateAvailable’
listenerFunc(state: UpdateAvailableEvent) => void

返回: Promise<PluginListenerHandle>

自从: 4.0.0


添加监听器(‘downloadComplete’,…)

标题:添加监听器(‘downloadComplete’,…)
addListener(eventName: 'downloadComplete', listenerFunc: (state: DownloadCompleteEvent) => void) => Promise<PluginListenerHandle>

监听下载完成事件。

参数类型
eventName’downloadComplete’
listenerFunc(state: DownloadCompleteEvent) => void

返回值: Promise<PluginListenerHandle>

自: 4.0.0


addListener(‘majorAvailable’,…)

标题:addListener(‘majorAvailable’,…)
addListener(eventName: 'majorAvailable', listenerFunc: (state: MajorAvailableEvent) => void) => Promise<PluginListenerHandle>

在应用程序中监听重大更新事件,让您知道重大更新是否被禁用AutoUpdateBreaking设置

参数类型
eventName’majorAvailable’
listenerFunc(state: MajorAvailableEvent) => void

返回值: Promise<PluginListenerHandle>

自: 2.3.0


添加监听器(‘updateFailed’,…)

标题:添加监听器(‘updateFailed’,…)
addListener(eventName: 'updateFailed', listenerFunc: (state: UpdateFailedEvent) => void) => Promise<PluginListenerHandle>

在 App 中监听更新失败事件,让您知道下次启动应用时更新安装失败

参数类型
eventName’updateFailed’
listenerFunc(state: UpdateFailedEvent) => void

返回值: Promise<PluginListenerHandle>

自: 2.3.0


添加监听器(‘downloadFailed’,…)

标题:添加监听器(‘downloadFailed’,…)
addListener(eventName: 'downloadFailed', listenerFunc: (state: DownloadFailedEvent) => void) => Promise<PluginListenerHandle>

在 App 中监听下载失败事件,让你知道一个捆绑包下载失败了

参数类型
eventName’downloadFailed’
listenerFunc(state: DownloadFailedEvent) => void

返回: Promise<PluginListenerHandle>

自: 4.0.0


addListener(‘appReloaded’,…)

标题:addListener(‘appReloaded’,…)
addListener(eventName: 'appReloaded', listenerFunc: () => void) => Promise<PluginListenerHandle>

在 App 中监听重载事件,让你知道重载已经发生

参数类型
eventName’appReloaded’
listenerFunc() => void

Returns: Promise<PluginListenerHandle>

自从: 4.3.0


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

在 App 中监听 app ready 事件,让你知道 app 已经准备好使用

参数类型
eventName’appReady’
listenerFunc(state: AppReadyEvent) => void

Returns: Promise<PluginListenerHandle>

自从: 5.1.0


isAutoUpdateAvailable()

标题:isAutoUpdateAvailable()
isAutoUpdateAvailable() => Promise<AutoUpdateAvailable>

获取是否有可更新的版本(不受serverUrl禁用)。

返回: Promise<AutoUpdateAvailable>


getNextBundle() => Promise<BundleInfo | null>

获取将在应用重载时使用的下一个捆绑包。 返回 null 如果没有设置下一个捆绑包。

返回: Promise<BundleInfo | null>

Since: 6.8.0


setShakeMenu(options: SetShakeMenuOptions) => Promise<void>

Enable or disable the shake menu for debugging/testing purposes

ParamTypeDescription
optionsSetShakeMenuOptionsContains enabled boolean to enable or disable shake menu

Since: 7.5.0


isShakeMenuEnabled() => Promise<ShakeMenuEnabled>

Get the current state of the shake menu

Returns: Promise<ShakeMenuEnabled>

Since: 7.5.0


属性类型
bundleBundleInfo
属性类型
idstring
versionstring
downloadedstring
checksumstring
statusBundleStatus
属性类型
urlstring
属性类型
urlstring
下载选项下载选项部分
urlstring

__CAPGO_KEEP_0__

__CAPGO_KEEP_0__

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

属性类型描述默认值
urlstring更新包的 zip 文件 URL (例如:dist.zip),用于下载。 (此 URL 可以是任何 URL。 例如:Amazon S3,一个 GitHub 标签,任何其他地方你托管的包。)
versionstring更新包的版本 code/名称
sessionKeystring更新的会话密钥,当包被加密时使用会话密钥undefined4.0.0
checksumstring更新的校验和,应为 sha256 并加密私钥,如果包被加密undefined4.0.0
manifestManifestEntry[]Delta (manifest) 多文件下载的清单undefined6.1.0

清单项

ManifestEntry
属性类型
file_namestring | null
file_hashstring | null
download_urlstring | null

BundleId

BundleId
属性类型
idstring

BundleListResult

属性
类型BundleListResult
bundlesBundleInfo[]

属性、类型、ListOptions

ListOptions
属性类型描述默认值
rawboolean是否返回原始包列表或清单。如果为真,列表将尝试读取内部数据库而不是磁盘上的文件。false6.14.0

ResetOptions

属性
类型当前包结果
toLastSuccessfulboolean
属性类型
bundleBundleInfo
nativestring

多延迟条件

多延迟条件
属性类型
delayConditionsDelayCondition[]

延迟条件

属性
类型描述__CAPGO_KEEP_0__
kindDelayUntilNext设置延迟条件在 setMultiDelay
valuestring

最新版本

最新版本
属性类型描述
versionstringgetLatest 方法的结果4.0.0
checksumstring6
majorboolean
messagestring
sessionKeystring
errorstring
oldstring
urlstring
manifestManifestEntry[]6.1

获取最新选项

获取最新选项
属性类型描述默认
channelstring获取最新版本的频道,频道必须允许 ‘自行分配’ 才能工作undefined6.8.0

ChannelRes

频道资源
PropType描述
statusstring设置的频道状态4.7.0
errorstring
messagestring
PropType
channelstring
triggerAutoUpdateboolean
PropType
triggerAutoUpdateboolean
PropType描述
channelstring获取频道的当前状态4.8.0
errorstring
messagestring
statusstring
allowSetboolean

ListChannelsResult

标题:ListChannelsResult
PropType描述
channelsChannelInfo[]可用的频道列表7.5.0
Prop类型描述__CAPGO_KEEP_0__
idnumberThe numeric channel ID7.5.0
namestring频道名称7.5.0
publicboolean如果为真,这是默认/备用频道。设备无法自行将其分配到公共频道。相反,当设备使用()移除其频道覆盖时,它将自动从匹配的公共频道接收更新。 unsetChannel()如果为真,设备可以使用()明确将其分配到此频道。通常用于beta测试、A/B测试或优惠升级跟踪。7.5.0
allow_self_setboolean频道命令使用频道 setChannel(),而不是此数字7.5.0

SetCustomIdOptions nameid.

属性类型
customIdstring

内置版本

内置版本
属性类型
versionstring

设备ID

属性
类型插件版本
deviceIdstring
属性类型
versionstring

自动更新

自动更新
属性类型
enabledboolean

插件监听器句柄

属性
类型下载事件
remove() => Promise<void>
属性类型描述
percentnumber下载进度,范围为0到100。4.0.0
bundleBundleInfo

无需事件

下载事件
属性类型描述
bundleBundleInfo下载进度,范围为 0 到 100。4.0.0

UpdateAvailableEvent

更新可用事件
PropType描述Since
bundleBundleInfo下载进度,范围为 0 到 100。4.0.0

DownloadCompleteEvent

下载完成事件
PropType描述
bundleBundleInfo当有新更新可用时发出。4.0.0

MajorAvailableEvent

标题:MajorAvailableEvent
PropType描述
versionstring当有新主要捆绑包可用时发出。4.0.0
属性类型描述
bundleBundleInfo下载失败安装时触发事件。4.0.0

DownloadFailedEvent

下载失败事件
属性类型描述
versionstring下载失败时触发事件.4.0.0

AppReadyEvent

AppReadyEvent
属性类型描述
bundleBundleInfo应用程序准备就绪时发射。5.2.0
statusstring

AutoUpdateAvailable

AutoUpdateAvailable
属性类型
availableboolean
属性类型
enabledboolean
属性类型
enabledboolean

pending: 等待打包 设置为下一个捆绑包。 downloading: 捆绑包正在下载中。 success: 捆绑包下载完成,准备就绪。 设置为下一个捆绑包。 error: 捆绑包下载失败。 延迟到下一个 Section titled “延迟到下一个”

‘success’ | ‘error’ | ‘pending’ | ‘downloading’

‘background’ | ‘kill’ | ‘nativeVersion’ | ‘date’

如果您正在使用

函数和设置

来规划仪表板和 __CAPGO_KEEP_0__ 操作,连接它与 使用 @__CAPGO_KEEP_0__/__CAPGO_KEEP_1__-updater 使用 @API/__CAPGO_KEEP_1__-updater 使用 @capgo/capacitor-updater 为使用 @capgo/capacitor-updater 的原生能力 API 概述 为 API 概述 的实现细节 介绍 为介绍 的实现细节 API 密钥 为 API 密钥 的实现细节 设备 为设备 的实现细节