設定
インストールステップとこのプラグインのフルマークダウンガイドまでの全てのステップを含むセットアップ用の質問をコピーしてください。
更新システムの詳細な制御を実現するには、次の設定を使用して構成します。
allowModifyUrl
データの保存場所セクションのタイトル “allowModifyUrl”
JavaScript側からupdateUrl、statsUrl、channelUrlを動的に変更できるようにするプラグインを許可します。
Android、iOS、Electronで利用可能です。 false
{ "plugins": { "CapacitorUpdater": { "allowModifyUrl": true } }}appId
appIdのセクションアプリIDをアプリの設定で設定してください。
Android、iOS、Electronで利用可能です。
デフォルト: undefined
{ "plugins": { "CapacitorUpdater": { "appId": "com.example.app" } }}appReadyTimeout
appReadyTimeoutのセクションネイティブプラグインがアップデートを‘失敗’と考えるまでの待機時間(ミリ秒)を設定してください。
Android、iOS、Electronで利用可能です。
デフォルト: 10000 10秒
{ "plugins": { "CapacitorUpdater": { "appReadyTimeout": 1000 } }}autoDeleteFailed
Section titled “autoDeleteFailed”Configure whether the plugin should automatically delete failed bundles.
Available on Android, iOS, and Electron.
Default: true
{ "plugins": { "CapacitorUpdater": { "autoDeleteFailed": false } }}autoDeletePrevious
Section titled “autoDeletePrevious”Configure whether the plugin should automatically delete previous bundles after a successful update.
Default:
Default: true
{ "plugins": { "CapacitorUpdater": { "autoDeletePrevious": false } }}autoSplashscreen
「autoSplashscreen」セクションインスタント適用モードを使用する際のスプラッシュスクリーン非表示処理を自動で行う。有効にすると、更新が適用されたり、更新が必要ない場合にスプラッシュスクリーンを自動で非表示にすることができます。 この機能により、手動でアプリが読み込まれた際にスプラッシュスクリーンを非表示にする必要がなくなります。 ただし、以下の条件を満たす場合にのみ機能します。
autoUpdateに設定されている場合、または"atInstall","onLaunch"、または"always". LegacydirectUpdateは既存のバージョンで使用できるため、互換性のためにサポートされます。 @capacitor/splash-screen プラグインがインストールされ、launchAutoHide: false で構成されている必要があります。 Auto Update が有効になっている必要があります。
Android、iOS、および Electron で利用可能です。
デフォルト: false
{ "plugins": { "CapacitorUpdater": { "autoUpdate": "atInstall", "autoSplashscreen": true } }}autoUpdate
「autoUpdate」セクションプラグインが自動更新を使用する方法を設定します。
true古いバージョンの互換性のために、真偽値はまだサポートされています:"atBackground"「true」は「」と同じです。false「false」は「」と同じです。"off".
オプション:
"off"自動更新を無効にするfalseアプリがバックグラウンドに移動したときに自動でチェックダウンロードして適用する"atBackground"インストールやネイティブアプリの更新後にのみ適用するtrue起動時にのみ適用する"atInstall"__CAPGO_KEEP_0__"atBackground""onLaunch"__CAPGO_KEEP_1__"atBackground"after the launch check"always": 即時適用Auto Updateの実行時"onlyDownload": Check and download automatically, emitupdateAvailable,自動で確認しダウンロードする、
,自動で次のバンドルを設定しない
Android、iOS、Electronで利用可能です。 "atBackground" (true is still accepted)
{ "plugins": { "CapacitorUpdater": { "autoUpdate": "onlyDownload" } }}channelUrl
チャネルURLの設定チャネル操作用のURL/エンドポイントを設定します。
Android、iOS、Electronで利用可能です。
Default: https://plugin.capgo.app/channel_self
{ "plugins": { "CapacitorUpdater": { "channelUrl": "https://example.com/api/channel" } }}defaultChannel
「defaultChannel」セクションアプリのデフォルトチャンネルをconfigで設定します。ケースシティです。 この設定は、クラウドで設定されたデフォルトチャンネルを上書きしますが、クラウドで設定されたオーバーライドを尊重します。
Android、iOS、Electronで利用可能です。
Default: undefined
{ "plugins": { "CapacitorUpdater": { "defaultChannel": "production" } }}directUpdate
「directUpdate」セクション廃止。代わりに「string modes」を使用してください:
autoUpdatestring modes"atInstall","onLaunch"、または"always"既存のアプリ用に残されたままです。
オプション:
false: 直接更新しない'atInstall':autoUpdate: "atInstall"'onLaunch':autoUpdate: "onLaunch"'always':autoUpdate: "always"true: (廃止) 「常に」と同じ
Android、iOS、および Electron で利用可能です。
デフォルト: false
{ "plugins": { "CapacitorUpdater": { "autoUpdate": "atInstall" } }}disableJSLogging
Section titled “disableJSLogging”JavaScript ロギングをプラグインが無効にする。trueの場合、プラグインはJavaScriptコンソールにログを出さない。Nativeログのみが行われる。
Android、iOS、Electronで利用可能。
デフォルト: false
{ "plugins": { "CapacitorUpdater": { "disableJSLogging": true } }}keepUrlPathAfterReload
Section titled “keepUrlPathAfterReload”URLパスをリロード後に維持するプラグインの設定を構成します。
Android、iOS、Electronで利用可能。
Default: false
{ "plugins": { "CapacitorUpdater": { "keepUrlPathAfterReload": true } }}periodCheckDelay
期間チェックの待機時間期間の更新チェックの待機時間を設定します。単位は秒です。 600秒以上 (10分) にはできません。
Android、iOS、Electronで利用可能です。
Default: 600 (10分)
{ "plugins": { "CapacitorUpdater": { "periodCheckDelay": 600 // (10 minutes) } }}publicKey
公開鍵バージョン2のエンドツーエンドライブアップデートの暗号化に使用する公開鍵を設定します。
Android、iOS、Electronで利用可能。
デフォルト: undefined
{ "plugins": { "CapacitorUpdater": { "publicKey": "YOUR_PUBLIC_KEY" } }}resetWhenUpdate
「resetWhenUpdate」セクションデバイスに新しいネイティブアプリケーションバンドルがインストールされたときに、以前ダウンロードしたバンドルを自動的に削除します。
Android、iOS、Electronで利用可能。
デフォルト: true
{ "plugins": { "CapacitorUpdater": { "resetWhenUpdate": false } }}responseTimeout
「responseTimeout」セクションネイティブプラグインがAPIをタイムアウトと考えるまでのミリ秒数を指定します。
Android、iOS、Electronで利用可能です。
デフォルト値: 20 (20秒)
{ "plugins": { "CapacitorUpdater": { "responseTimeout": 10 // (10 seconds) } }}shakeMenu
タイトル:「shakeMenu」デバッグ/テスト用にアップデートメニューを表示するためにシェイクジェスチャーを有効にします。
Android、iOS、Electronで利用可能です。
デフォルト値: false
{ "plugins": { "CapacitorUpdater": { "shakeMenu": true } }}statsUrl
タイトル:「statsUrl」更新統計を送信するURL/エンドポイントを設定します。
Android、iOS、Electronで利用可能です。 "" に設定すると、統計レポートを無効にします。
デフォルト: https://plugin.capgo.app/stats
{ "plugins": { "CapacitorUpdater": { "statsUrl": "https://example.com/api/stats" } }}updateUrl
「updateUrl」セクション更新チェックを送信するURL/エンドポイントを設定します。
Android、iOS、Electronで利用可能です。
デフォルト: https://plugin.capgo.app/updates
{ "plugins": { "CapacitorUpdater": { "updateUrl": "https://example.com/api/auto_update" } }}version
「version」セクション現在のアプリのバージョンを設定します。これは、最初の更新要求に使用されます。 設定されていない場合、プラグインはネイティブの code からバージョンを取得します。
Android、iOS、Electronで利用可能です。
デフォルト: undefined
{ "plugins": { "CapacitorUpdater": { "version": "1.0.0" } }}開発設定
「開発設定」のセクションlocalApi
「localApi」のセクションローカル api を使用してテストするように CLI を設定します。
デフォルト: undefined
{ "plugins": { "CapacitorUpdater": { "localApi": "http://localhost:54321/functions/v1" } }}localApiFiles
localApiFilesのセクションCLIをapiに置き換えてローカルファイルを使用してテストしてください。
デフォルト: undefined
{ "plugins": { "CapacitorUpdater": { "localApiFiles": "http://localhost:54321/functions/v1/files" } }}localHost
localHostのセクションCLIをローカルサーバーに置き換えてテストまたは自社の更新サーバーを使用してください。
デフォルト: undefined
{ "plugins": { "CapacitorUpdater": { "localHost": "http://localhost:5173" } }}localSupa
localSupaのセクションCLIをローカルサーバーに置き換えてテストまたは自社の更新サーバーを使用してください.
Default: undefined
{ "plugins": { "CapacitorUpdater": { "localSupa": "http://localhost:54321" } }}localSupaAnon
セクション:「localSupaAnon」CLIをローカルサーバーでテストするように設定します。
Default: undefined
{ "plugins": { "CapacitorUpdater": { "localSupaAnon": "YOUR_LOCAL_ANON_KEY" } }}localWebHost
セクション:「localWebHost」CLIをローカルサーバーまたは自主ホストの更新サーバーでテストするように設定します。
Default: undefined
{ "plugins": { "CapacitorUpdater": { "localWebHost": "http://localhost:5173" } }}設定から続ける
「設定から続ける」のセクション__CAPGO_KEEP_0__を使用している場合 設定 APIの計画ダッシュボードとAPIのオペレーションを実行するには、APIを Using @capgo/capacitor-updater capgoのネイティブ機能を使用するために、@capacitor/capgo-アップデーターを使用します。 APIの概要 APIの実装詳細については、APIの概要を参照してください。 導入 __CAPGO_KEEP_0__の実装詳細については、導入を参照してください。 APIのキー APIの実装詳細については、APIのキーを参照してください。 デバイス __CAPGO_KEEP_0__の実装詳細については、デバイスを参照してください。