@capgo/capacitor-updater 8.0.1 → 8.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CapgoCapacitorUpdater.podspec +7 -5
- package/Package.swift +9 -7
- package/README.md +984 -215
- package/android/build.gradle +24 -12
- package/android/proguard-rules.pro +22 -5
- package/android/src/main/java/ee/forgr/capacitor_updater/BundleInfo.java +110 -22
- package/android/src/main/java/ee/forgr/capacitor_updater/Callback.java +2 -2
- package/android/src/main/java/ee/forgr/capacitor_updater/CapacitorUpdaterPlugin.java +1310 -488
- package/android/src/main/java/ee/forgr/capacitor_updater/{CapacitorUpdater.java → CapgoUpdater.java} +640 -203
- package/android/src/main/java/ee/forgr/capacitor_updater/{CryptoCipherV2.java → CryptoCipher.java} +119 -33
- package/android/src/main/java/ee/forgr/capacitor_updater/DelayCondition.java +0 -3
- package/android/src/main/java/ee/forgr/capacitor_updater/DelayUpdateUtils.java +260 -0
- package/android/src/main/java/ee/forgr/capacitor_updater/DeviceIdHelper.java +221 -0
- package/android/src/main/java/ee/forgr/capacitor_updater/DownloadService.java +497 -133
- package/android/src/main/java/ee/forgr/capacitor_updater/DownloadWorkerManager.java +80 -25
- package/android/src/main/java/ee/forgr/capacitor_updater/Logger.java +338 -0
- package/android/src/main/java/ee/forgr/capacitor_updater/ShakeDetector.java +72 -0
- package/android/src/main/java/ee/forgr/capacitor_updater/ShakeMenu.java +169 -0
- package/dist/docs.json +873 -154
- package/dist/esm/definitions.d.ts +881 -114
- package/dist/esm/definitions.js.map +1 -1
- package/dist/esm/history.d.ts +1 -0
- package/dist/esm/history.js +283 -0
- package/dist/esm/history.js.map +1 -0
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/web.d.ts +12 -1
- package/dist/esm/web.js +29 -2
- package/dist/esm/web.js.map +1 -1
- package/dist/plugin.cjs.js +311 -2
- package/dist/plugin.cjs.js.map +1 -1
- package/dist/plugin.js +311 -2
- package/dist/plugin.js.map +1 -1
- package/ios/Sources/CapacitorUpdaterPlugin/AES.swift +69 -0
- package/ios/Sources/CapacitorUpdaterPlugin/BigInt.swift +55 -0
- package/ios/{Plugin → Sources/CapacitorUpdaterPlugin}/BundleInfo.swift +37 -10
- package/ios/{Plugin → Sources/CapacitorUpdaterPlugin}/BundleStatus.swift +1 -1
- package/ios/Sources/CapacitorUpdaterPlugin/CapacitorUpdaterPlugin.swift +1605 -0
- package/ios/{Plugin/CapacitorUpdater.swift → Sources/CapacitorUpdaterPlugin/CapgoUpdater.swift} +523 -230
- package/ios/Sources/CapacitorUpdaterPlugin/CryptoCipher.swift +267 -0
- package/ios/Sources/CapacitorUpdaterPlugin/DelayUpdateUtils.swift +220 -0
- package/ios/Sources/CapacitorUpdaterPlugin/DeviceIdHelper.swift +120 -0
- package/ios/{Plugin → Sources/CapacitorUpdaterPlugin}/InternalUtils.swift +53 -0
- package/ios/Sources/CapacitorUpdaterPlugin/Logger.swift +310 -0
- package/ios/Sources/CapacitorUpdaterPlugin/RSA.swift +274 -0
- package/ios/Sources/CapacitorUpdaterPlugin/ShakeMenu.swift +112 -0
- package/ios/{Plugin → Sources/CapacitorUpdaterPlugin}/UserDefaultsExtension.swift +0 -2
- package/package.json +21 -19
- package/ios/Plugin/CapacitorUpdaterPlugin.swift +0 -975
- package/ios/Plugin/CryptoCipherV2.swift +0 -310
- /package/{LICENCE → LICENSE} +0 -0
- /package/ios/{Plugin → Sources/CapacitorUpdaterPlugin}/DelayCondition.swift +0 -0
- /package/ios/{Plugin → Sources/CapacitorUpdaterPlugin}/DelayUntilNext.swift +0 -0
- /package/ios/{Plugin → Sources/CapacitorUpdaterPlugin}/Info.plist +0 -0
package/dist/docs.json
CHANGED
|
@@ -13,14 +13,10 @@
|
|
|
13
13
|
"tags": [
|
|
14
14
|
{
|
|
15
15
|
"name": "returns",
|
|
16
|
-
"text": "
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
"name": "throws",
|
|
20
|
-
"text": "{Error}"
|
|
16
|
+
"text": "Always resolves successfully with current bundle info. This method never fails."
|
|
21
17
|
}
|
|
22
18
|
],
|
|
23
|
-
"docs": "Notify
|
|
19
|
+
"docs": "Notify the native layer that JavaScript initialized successfully.\n\n**CRITICAL: You must call this method on every app launch to prevent automatic rollback.**\n\nThis is a simple notification to confirm that your bundle's JavaScript loaded and executed.\nThe native web server successfully served the bundle files and your JS runtime started.\nThat's all it checks - nothing more complex.\n\n**What triggers rollback:**\n- NOT calling this method within the timeout (default: 10 seconds)\n- Complete JavaScript failure (bundle won't load at all)\n\n**What does NOT trigger rollback:**\n- Runtime errors after initialization (API failures, crashes, etc.)\n- Network request failures\n- Application logic errors\n\n**IMPORTANT: Call this BEFORE any network requests.**\nDon't wait for APIs, data loading, or async operations. Call it as soon as your\nJavaScript bundle starts executing to confirm the bundle itself is valid.\n\nBest practices:\n- Call immediately in your app entry point (main.js, app component mount, etc.)\n- Don't put it after network calls or heavy initialization\n- Don't wrap it in try/catch with conditions\n- Adjust {@link PluginsConfig.CapacitorUpdater.appReadyTimeout} if you need more time",
|
|
24
20
|
"complexTypes": [
|
|
25
21
|
"AppReadyResult"
|
|
26
22
|
],
|
|
@@ -32,7 +28,7 @@
|
|
|
32
28
|
"parameters": [
|
|
33
29
|
{
|
|
34
30
|
"name": "options",
|
|
35
|
-
"docs": "
|
|
31
|
+
"docs": "Contains the URL to use for checking for updates.",
|
|
36
32
|
"type": "UpdateUrl"
|
|
37
33
|
}
|
|
38
34
|
],
|
|
@@ -40,21 +36,22 @@
|
|
|
40
36
|
"tags": [
|
|
41
37
|
{
|
|
42
38
|
"name": "param",
|
|
43
|
-
"text": "options
|
|
39
|
+
"text": "options Contains the URL to use for checking for updates."
|
|
44
40
|
},
|
|
45
41
|
{
|
|
46
|
-
"name": "returns"
|
|
42
|
+
"name": "returns",
|
|
43
|
+
"text": "Resolves when the URL is successfully updated."
|
|
47
44
|
},
|
|
48
45
|
{
|
|
49
46
|
"name": "throws",
|
|
50
|
-
"text": "{Error}"
|
|
47
|
+
"text": "{Error} If `allowModifyUrl` is false or if the operation fails."
|
|
51
48
|
},
|
|
52
49
|
{
|
|
53
50
|
"name": "since",
|
|
54
51
|
"text": "5.4.0"
|
|
55
52
|
}
|
|
56
53
|
],
|
|
57
|
-
"docs": "Set the
|
|
54
|
+
"docs": "Set the update URL for the app dynamically at runtime.\n\nThis overrides the {@link PluginsConfig.CapacitorUpdater.updateUrl} config value.\nRequires {@link PluginsConfig.CapacitorUpdater.allowModifyUrl} to be set to `true`.\n\nUse {@link PluginsConfig.CapacitorUpdater.persistModifyUrl} to persist this value across app restarts.\nOtherwise, the URL will reset to the config value on next app launch.",
|
|
58
55
|
"complexTypes": [
|
|
59
56
|
"UpdateUrl"
|
|
60
57
|
],
|
|
@@ -66,7 +63,7 @@
|
|
|
66
63
|
"parameters": [
|
|
67
64
|
{
|
|
68
65
|
"name": "options",
|
|
69
|
-
"docs": "
|
|
66
|
+
"docs": "Contains the URL to use for sending statistics, or an empty string to disable.",
|
|
70
67
|
"type": "StatsUrl"
|
|
71
68
|
}
|
|
72
69
|
],
|
|
@@ -74,21 +71,22 @@
|
|
|
74
71
|
"tags": [
|
|
75
72
|
{
|
|
76
73
|
"name": "param",
|
|
77
|
-
"text": "options
|
|
74
|
+
"text": "options Contains the URL to use for sending statistics, or an empty string to disable."
|
|
78
75
|
},
|
|
79
76
|
{
|
|
80
|
-
"name": "returns"
|
|
77
|
+
"name": "returns",
|
|
78
|
+
"text": "Resolves when the URL is successfully updated."
|
|
81
79
|
},
|
|
82
80
|
{
|
|
83
81
|
"name": "throws",
|
|
84
|
-
"text": "{Error}"
|
|
82
|
+
"text": "{Error} If `allowModifyUrl` is false or if the operation fails."
|
|
85
83
|
},
|
|
86
84
|
{
|
|
87
85
|
"name": "since",
|
|
88
86
|
"text": "5.4.0"
|
|
89
87
|
}
|
|
90
88
|
],
|
|
91
|
-
"docs": "Set the
|
|
89
|
+
"docs": "Set the statistics URL for the app dynamically at runtime.\n\nThis overrides the {@link PluginsConfig.CapacitorUpdater.statsUrl} config value.\nRequires {@link PluginsConfig.CapacitorUpdater.allowModifyUrl} to be set to `true`.\n\nPass an empty string to disable statistics gathering entirely.\nUse {@link PluginsConfig.CapacitorUpdater.persistModifyUrl} to persist this value across app restarts.",
|
|
92
90
|
"complexTypes": [
|
|
93
91
|
"StatsUrl"
|
|
94
92
|
],
|
|
@@ -100,7 +98,7 @@
|
|
|
100
98
|
"parameters": [
|
|
101
99
|
{
|
|
102
100
|
"name": "options",
|
|
103
|
-
"docs": "
|
|
101
|
+
"docs": "Contains the URL to use for channel operations.",
|
|
104
102
|
"type": "ChannelUrl"
|
|
105
103
|
}
|
|
106
104
|
],
|
|
@@ -108,21 +106,22 @@
|
|
|
108
106
|
"tags": [
|
|
109
107
|
{
|
|
110
108
|
"name": "param",
|
|
111
|
-
"text": "options
|
|
109
|
+
"text": "options Contains the URL to use for channel operations."
|
|
112
110
|
},
|
|
113
111
|
{
|
|
114
|
-
"name": "returns"
|
|
112
|
+
"name": "returns",
|
|
113
|
+
"text": "Resolves when the URL is successfully updated."
|
|
115
114
|
},
|
|
116
115
|
{
|
|
117
116
|
"name": "throws",
|
|
118
|
-
"text": "{Error}"
|
|
117
|
+
"text": "{Error} If `allowModifyUrl` is false or if the operation fails."
|
|
119
118
|
},
|
|
120
119
|
{
|
|
121
120
|
"name": "since",
|
|
122
121
|
"text": "5.4.0"
|
|
123
122
|
}
|
|
124
123
|
],
|
|
125
|
-
"docs": "Set the
|
|
124
|
+
"docs": "Set the channel URL for the app dynamically at runtime.\n\nThis overrides the {@link PluginsConfig.CapacitorUpdater.channelUrl} config value.\nRequires {@link PluginsConfig.CapacitorUpdater.allowModifyUrl} to be set to `true`.\n\nUse {@link PluginsConfig.CapacitorUpdater.persistModifyUrl} to persist this value across app restarts.\nOtherwise, the URL will reset to the config value on next app launch.",
|
|
126
125
|
"complexTypes": [
|
|
127
126
|
"ChannelUrl"
|
|
128
127
|
],
|
|
@@ -142,18 +141,22 @@
|
|
|
142
141
|
"tags": [
|
|
143
142
|
{
|
|
144
143
|
"name": "example",
|
|
145
|
-
"text": "const bundle = await CapacitorUpdater.download({
|
|
144
|
+
"text": "const bundle = await CapacitorUpdater.download({\n url: `https://example.com/versions/${version}/dist.zip`,\n version: version\n});\n// Bundle is downloaded but not active yet\nawait CapacitorUpdater.next({ id: bundle.id }); // Will activate on next background"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"name": "param",
|
|
148
|
+
"text": "options The {@link DownloadOptions} for downloading a new bundle zip."
|
|
146
149
|
},
|
|
147
150
|
{
|
|
148
151
|
"name": "returns",
|
|
149
|
-
"text": "The {@link BundleInfo} for the
|
|
152
|
+
"text": "The {@link BundleInfo} for the downloaded bundle."
|
|
150
153
|
},
|
|
151
154
|
{
|
|
152
|
-
"name": "
|
|
153
|
-
"text": "
|
|
155
|
+
"name": "throws",
|
|
156
|
+
"text": "{Error} If the download fails or the bundle is invalid."
|
|
154
157
|
}
|
|
155
158
|
],
|
|
156
|
-
"docs": "Download a new bundle from the provided URL
|
|
159
|
+
"docs": "Download a new bundle from the provided URL for later installation.\n\nThe downloaded bundle is stored locally but not activated. To use it:\n- Call {@link next} to set it for installation on next app backgrounding/restart\n- Call {@link set} to activate it immediately (destroys current JavaScript context)\n\nThe URL should point to a zip file containing either:\n- Your app files directly in the zip root, or\n- A single folder containing all your app files\n\nThe bundle must include an `index.html` file at the root level.\n\nFor encrypted bundles, provide the `sessionKey` and `checksum` parameters.\nFor multi-file partial updates, provide the `manifest` array.",
|
|
157
160
|
"complexTypes": [
|
|
158
161
|
"BundleInfo",
|
|
159
162
|
"DownloadOptions"
|
|
@@ -166,7 +169,7 @@
|
|
|
166
169
|
"parameters": [
|
|
167
170
|
{
|
|
168
171
|
"name": "options",
|
|
169
|
-
"docs": "Contains the ID of the
|
|
172
|
+
"docs": "Contains the ID of the bundle to set as next. Use {@link BundleInfo.id} from a downloaded bundle.",
|
|
170
173
|
"type": "BundleId"
|
|
171
174
|
}
|
|
172
175
|
],
|
|
@@ -174,18 +177,18 @@
|
|
|
174
177
|
"tags": [
|
|
175
178
|
{
|
|
176
179
|
"name": "param",
|
|
177
|
-
"text": "options Contains the ID of the
|
|
180
|
+
"text": "options Contains the ID of the bundle to set as next. Use {@link BundleInfo.id} from a downloaded bundle."
|
|
178
181
|
},
|
|
179
182
|
{
|
|
180
183
|
"name": "returns",
|
|
181
|
-
"text": "The {@link BundleInfo} for the specified bundle
|
|
184
|
+
"text": "The {@link BundleInfo} for the specified bundle."
|
|
182
185
|
},
|
|
183
186
|
{
|
|
184
187
|
"name": "throws",
|
|
185
|
-
"text": "{Error} When there is no index.html file inside the bundle folder."
|
|
188
|
+
"text": "{Error} When there is no index.html file inside the bundle folder or the bundle doesn't exist."
|
|
186
189
|
}
|
|
187
190
|
],
|
|
188
|
-
"docs": "Set the next bundle to be
|
|
191
|
+
"docs": "Set the next bundle to be activated when the app backgrounds or restarts.\n\nThis is the recommended way to apply updates as it doesn't interrupt the user's current session.\nThe bundle will be activated when:\n- The app is backgrounded (user switches away), or\n- The app is killed and relaunched, or\n- {@link reload} is called manually\n\nUnlike {@link set}, this method does NOT destroy the current JavaScript context immediately.\nYour app continues running normally until one of the above events occurs.\n\nUse {@link setMultiDelay} to add additional conditions before the update is applied.",
|
|
189
192
|
"complexTypes": [
|
|
190
193
|
"BundleInfo",
|
|
191
194
|
"BundleId"
|
|
@@ -209,14 +212,15 @@
|
|
|
209
212
|
"text": "options A {@link BundleId} object containing the new bundle id to set as current."
|
|
210
213
|
},
|
|
211
214
|
{
|
|
212
|
-
"name": "returns"
|
|
215
|
+
"name": "returns",
|
|
216
|
+
"text": "A promise that will never resolve because the JavaScript context is destroyed."
|
|
213
217
|
},
|
|
214
218
|
{
|
|
215
219
|
"name": "throws",
|
|
216
|
-
"text": "{Error} When there
|
|
220
|
+
"text": "{Error} When there is no index.html file inside the bundle folder."
|
|
217
221
|
}
|
|
218
222
|
],
|
|
219
|
-
"docs": "Set the current bundle and immediately reloads the app.",
|
|
223
|
+
"docs": "Set the current bundle and immediately reloads the app.\n\n**IMPORTANT: This is a terminal operation that destroys the current JavaScript context.**\n\nWhen you call this method:\n- The entire JavaScript context is immediately destroyed\n- The app reloads from a different folder with different files\n- NO code after this call will execute\n- NO promises will resolve\n- NO callbacks will fire\n- Event listeners registered after this call are unreliable and may never fire\n\nThe reload happens automatically - you don't need to do anything else.\nIf you need to preserve state like the current URL path, use the {@link PluginsConfig.CapacitorUpdater.keepUrlPathAfterReload} config option.\nFor other state preservation needs, save your data before calling this method (e.g., to localStorage).\n\n**Do not** try to execute additional logic after calling `set()` - it won't work as expected.",
|
|
220
224
|
"complexTypes": [
|
|
221
225
|
"BundleId"
|
|
222
226
|
],
|
|
@@ -228,7 +232,7 @@
|
|
|
228
232
|
"parameters": [
|
|
229
233
|
{
|
|
230
234
|
"name": "options",
|
|
231
|
-
"docs": "A {@link BundleId} object containing the ID
|
|
235
|
+
"docs": "A {@link BundleId} object containing the bundle ID to delete.",
|
|
232
236
|
"type": "BundleId"
|
|
233
237
|
}
|
|
234
238
|
],
|
|
@@ -236,49 +240,85 @@
|
|
|
236
240
|
"tags": [
|
|
237
241
|
{
|
|
238
242
|
"name": "param",
|
|
239
|
-
"text": "options A {@link BundleId} object containing the ID
|
|
243
|
+
"text": "options A {@link BundleId} object containing the bundle ID to delete."
|
|
240
244
|
},
|
|
241
245
|
{
|
|
242
246
|
"name": "returns",
|
|
243
|
-
"text": "
|
|
247
|
+
"text": "Resolves when the bundle is successfully deleted."
|
|
244
248
|
},
|
|
245
249
|
{
|
|
246
250
|
"name": "throws",
|
|
247
|
-
"text": "{Error}"
|
|
251
|
+
"text": "{Error} If the bundle is currently in use or doesn't exist."
|
|
248
252
|
}
|
|
249
253
|
],
|
|
250
|
-
"docs": "
|
|
254
|
+
"docs": "Delete a bundle from local storage to free up disk space.\n\nYou cannot delete:\n- The currently active bundle\n- The `builtin` bundle (the version shipped with your app)\n- The bundle set as `next` (call {@link next} with a different bundle first)\n\nUse {@link list} to get all available bundle IDs.\n\n**Note:** The bundle ID is NOT the same as the version name.\nUse the `id` field from {@link BundleInfo}, not the `version` field.",
|
|
251
255
|
"complexTypes": [
|
|
252
256
|
"BundleId"
|
|
253
257
|
],
|
|
254
258
|
"slug": "delete"
|
|
255
259
|
},
|
|
260
|
+
{
|
|
261
|
+
"name": "setBundleError",
|
|
262
|
+
"signature": "(options: BundleId) => Promise<BundleInfo>",
|
|
263
|
+
"parameters": [
|
|
264
|
+
{
|
|
265
|
+
"name": "options",
|
|
266
|
+
"docs": "A {@link BundleId} object containing the bundle ID to mark as errored.",
|
|
267
|
+
"type": "BundleId"
|
|
268
|
+
}
|
|
269
|
+
],
|
|
270
|
+
"returns": "Promise<BundleInfo>",
|
|
271
|
+
"tags": [
|
|
272
|
+
{
|
|
273
|
+
"name": "param",
|
|
274
|
+
"text": "options A {@link BundleId} object containing the bundle ID to mark as errored."
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
"name": "returns",
|
|
278
|
+
"text": "The updated {@link BundleInfo} with status set to `error`."
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
"name": "throws",
|
|
282
|
+
"text": "{Error} When the bundle does not exist or `allowManualBundleError` is false."
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
"name": "since",
|
|
286
|
+
"text": "7.20.0"
|
|
287
|
+
}
|
|
288
|
+
],
|
|
289
|
+
"docs": "Manually mark a bundle as failed/errored in manual update mode.\n\nThis is useful when you detect that a bundle has critical issues and want to prevent\nit from being used again. The bundle status will be changed to `error` and the plugin\nwill avoid using this bundle in the future.\n\n**Requirements:**\n- {@link PluginsConfig.CapacitorUpdater.allowManualBundleError} must be set to `true`\n- Only works in manual update mode (when autoUpdate is disabled)\n\nCommon use case: After downloading and testing a bundle, you discover it has critical\nbugs and want to mark it as failed so it won't be retried.",
|
|
290
|
+
"complexTypes": [
|
|
291
|
+
"BundleInfo",
|
|
292
|
+
"BundleId"
|
|
293
|
+
],
|
|
294
|
+
"slug": "setbundleerror"
|
|
295
|
+
},
|
|
256
296
|
{
|
|
257
297
|
"name": "list",
|
|
258
298
|
"signature": "(options?: ListOptions | undefined) => Promise<BundleListResult>",
|
|
259
299
|
"parameters": [
|
|
260
300
|
{
|
|
261
301
|
"name": "options",
|
|
262
|
-
"docs": "The {@link ListOptions} for
|
|
302
|
+
"docs": "The {@link ListOptions} for customizing the bundle list output.",
|
|
263
303
|
"type": "ListOptions | undefined"
|
|
264
304
|
}
|
|
265
305
|
],
|
|
266
306
|
"returns": "Promise<BundleListResult>",
|
|
267
307
|
"tags": [
|
|
268
308
|
{
|
|
269
|
-
"name": "
|
|
270
|
-
"text": "
|
|
309
|
+
"name": "param",
|
|
310
|
+
"text": "options The {@link ListOptions} for customizing the bundle list output."
|
|
271
311
|
},
|
|
272
312
|
{
|
|
273
|
-
"name": "
|
|
274
|
-
"text": "
|
|
313
|
+
"name": "returns",
|
|
314
|
+
"text": "A promise containing the array of {@link BundleInfo} objects."
|
|
275
315
|
},
|
|
276
316
|
{
|
|
277
317
|
"name": "throws",
|
|
278
|
-
"text": "{Error}"
|
|
318
|
+
"text": "{Error} If the operation fails."
|
|
279
319
|
}
|
|
280
320
|
],
|
|
281
|
-
"docs": "Get all locally downloaded bundles in your app",
|
|
321
|
+
"docs": "Get all locally downloaded bundles stored in your app.\n\nThis returns all bundles that have been downloaded and are available locally, including:\n- The currently active bundle\n- The `builtin` bundle (shipped with your app)\n- Any downloaded bundles waiting to be activated\n- Failed bundles (with `error` status)\n\nUse this to:\n- Check available disk space by counting bundles\n- Delete old bundles with {@link delete}\n- Monitor bundle download status",
|
|
282
322
|
"complexTypes": [
|
|
283
323
|
"BundleListResult",
|
|
284
324
|
"ListOptions"
|
|
@@ -291,7 +331,7 @@
|
|
|
291
331
|
"parameters": [
|
|
292
332
|
{
|
|
293
333
|
"name": "options",
|
|
294
|
-
"docs": "
|
|
334
|
+
"docs": "",
|
|
295
335
|
"type": "ResetOptions | undefined"
|
|
296
336
|
}
|
|
297
337
|
],
|
|
@@ -299,17 +339,22 @@
|
|
|
299
339
|
"tags": [
|
|
300
340
|
{
|
|
301
341
|
"name": "param",
|
|
302
|
-
"text": "options
|
|
342
|
+
"text": "options"
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
"name": "link",
|
|
346
|
+
"text": "ResetOptions} to control reset behavior. If `toLastSuccessful` is `false` (or omitted), resets to builtin. If `true`, resets to last successful bundle."
|
|
303
347
|
},
|
|
304
348
|
{
|
|
305
|
-
"name": "returns"
|
|
349
|
+
"name": "returns",
|
|
350
|
+
"text": "A promise that may never resolve because the app will be reloaded."
|
|
306
351
|
},
|
|
307
352
|
{
|
|
308
353
|
"name": "throws",
|
|
309
|
-
"text": "{Error}"
|
|
354
|
+
"text": "{Error} If the reset operation fails."
|
|
310
355
|
}
|
|
311
356
|
],
|
|
312
|
-
"docs": "Reset the app to
|
|
357
|
+
"docs": "Reset the app to a known good bundle.\n\nThis method helps recover from problematic updates by reverting to either:\n- The `builtin` bundle (the original version shipped with your app to App Store/Play Store)\n- The last successfully loaded bundle (most recent bundle that worked correctly)\n\n**IMPORTANT: This triggers an immediate app reload, destroying the current JavaScript context.**\nSee {@link set} for details on the implications of this operation.\n\nUse cases:\n- Emergency recovery when an update causes critical issues\n- Testing rollback functionality\n- Providing users a \"reset to factory\" option",
|
|
313
358
|
"complexTypes": [
|
|
314
359
|
"ResetOptions"
|
|
315
360
|
],
|
|
@@ -323,14 +368,14 @@
|
|
|
323
368
|
"tags": [
|
|
324
369
|
{
|
|
325
370
|
"name": "returns",
|
|
326
|
-
"text": "A
|
|
371
|
+
"text": "A promise with the current bundle and native version info."
|
|
327
372
|
},
|
|
328
373
|
{
|
|
329
374
|
"name": "throws",
|
|
330
|
-
"text": "{Error}"
|
|
375
|
+
"text": "{Error} If the operation fails."
|
|
331
376
|
}
|
|
332
377
|
],
|
|
333
|
-
"docs": "Get the
|
|
378
|
+
"docs": "Get information about the currently active bundle.\n\nReturns:\n- `bundle`: The currently active bundle information\n- `native`: The version of the builtin bundle (the original app version from App/Play Store)\n\nIf no updates have been applied, `bundle.id` will be `\"builtin\"`, indicating the app\nis running the original version shipped with the native app.\n\nUse this to:\n- Display the current version to users\n- Check if an update is currently active\n- Compare against available updates\n- Log the active bundle for debugging",
|
|
334
379
|
"complexTypes": [
|
|
335
380
|
"CurrentBundleResult"
|
|
336
381
|
],
|
|
@@ -344,14 +389,14 @@
|
|
|
344
389
|
"tags": [
|
|
345
390
|
{
|
|
346
391
|
"name": "returns",
|
|
347
|
-
"text": "A
|
|
392
|
+
"text": "A promise that may never resolve because the app will be reloaded."
|
|
348
393
|
},
|
|
349
394
|
{
|
|
350
395
|
"name": "throws",
|
|
351
|
-
"text": "{Error}"
|
|
396
|
+
"text": "{Error} If the reload operation fails."
|
|
352
397
|
}
|
|
353
398
|
],
|
|
354
|
-
"docs": "
|
|
399
|
+
"docs": "Manually reload the app to apply a pending update.\n\nThis triggers the same reload behavior that happens automatically when the app backgrounds.\nIf you've called {@link next} to queue an update, calling `reload()` will apply it immediately.\n\n**IMPORTANT: This destroys the current JavaScript context immediately.**\nSee {@link set} for details on the implications of this operation.\n\nCommon use cases:\n- Applying an update immediately after download instead of waiting for backgrounding\n- Providing a \"Restart now\" button to users after an update is ready\n- Testing update flows during development\n\nIf no update is pending (no call to {@link next}), this simply reloads the current bundle.",
|
|
355
400
|
"complexTypes": [],
|
|
356
401
|
"slug": "reload"
|
|
357
402
|
},
|
|
@@ -361,7 +406,7 @@
|
|
|
361
406
|
"parameters": [
|
|
362
407
|
{
|
|
363
408
|
"name": "options",
|
|
364
|
-
"docs": "
|
|
409
|
+
"docs": "Contains the {@link MultiDelayConditions} array of conditions.",
|
|
365
410
|
"type": "MultiDelayConditions"
|
|
366
411
|
}
|
|
367
412
|
],
|
|
@@ -369,33 +414,34 @@
|
|
|
369
414
|
"tags": [
|
|
370
415
|
{
|
|
371
416
|
"name": "example",
|
|
372
|
-
"text": "//
|
|
417
|
+
"text": "// Update after user kills app OR after 5 minutes in background\nawait CapacitorUpdater.setMultiDelay({\n delayConditions: [\n { kind: 'kill' },\n { kind: 'background', value: '300000' }\n ]\n});"
|
|
373
418
|
},
|
|
374
419
|
{
|
|
375
420
|
"name": "example",
|
|
376
|
-
"text": "//
|
|
421
|
+
"text": "// Update after a specific date\nawait CapacitorUpdater.setMultiDelay({\n delayConditions: [{ kind: 'date', value: '2025-12-31T23:59:59Z' }]\n});"
|
|
377
422
|
},
|
|
378
423
|
{
|
|
379
424
|
"name": "example",
|
|
380
|
-
"text": "//
|
|
425
|
+
"text": "// Default behavior: update on next background\nawait CapacitorUpdater.setMultiDelay({\n delayConditions: [{ kind: 'background' }]\n});"
|
|
381
426
|
},
|
|
382
427
|
{
|
|
383
428
|
"name": "param",
|
|
384
|
-
"text": "options
|
|
429
|
+
"text": "options Contains the {@link MultiDelayConditions} array of conditions."
|
|
385
430
|
},
|
|
386
431
|
{
|
|
387
|
-
"name": "returns"
|
|
432
|
+
"name": "returns",
|
|
433
|
+
"text": "Resolves when the delay conditions are set."
|
|
388
434
|
},
|
|
389
435
|
{
|
|
390
436
|
"name": "throws",
|
|
391
|
-
"text": "{Error}"
|
|
437
|
+
"text": "{Error} If the operation fails or conditions are invalid."
|
|
392
438
|
},
|
|
393
439
|
{
|
|
394
440
|
"name": "since",
|
|
395
441
|
"text": "4.3.0"
|
|
396
442
|
}
|
|
397
443
|
],
|
|
398
|
-
"docs": "
|
|
444
|
+
"docs": "Configure conditions that must be met before a pending update is applied.\n\nAfter calling {@link next} to queue an update, use this method to control when it gets applied.\nThe update will only be installed after ALL specified conditions are satisfied.\n\nAvailable condition types:\n- `background`: Wait for the app to be backgrounded. Optionally specify duration in milliseconds.\n- `kill`: Wait for the app to be killed and relaunched (**Note:** Current behavior triggers update immediately on kill, not on next background. This will be fixed in v8.)\n- `date`: Wait until a specific date/time (ISO 8601 format)\n- `nativeVersion`: Wait until the native app is updated to a specific version\n\nCondition value formats:\n- `background`: Number in milliseconds (e.g., `\"300000\"` for 5 minutes), or omit for immediate\n- `kill`: No value needed\n- `date`: ISO 8601 date string (e.g., `\"2025-12-31T23:59:59Z\"`)\n- `nativeVersion`: Version string (e.g., `\"2.0.0\"`)",
|
|
399
445
|
"complexTypes": [
|
|
400
446
|
"MultiDelayConditions"
|
|
401
447
|
],
|
|
@@ -408,18 +454,19 @@
|
|
|
408
454
|
"returns": "Promise<void>",
|
|
409
455
|
"tags": [
|
|
410
456
|
{
|
|
411
|
-
"name": "returns"
|
|
457
|
+
"name": "returns",
|
|
458
|
+
"text": "Resolves when the delay conditions are cleared."
|
|
412
459
|
},
|
|
413
460
|
{
|
|
414
461
|
"name": "throws",
|
|
415
|
-
"text": "{Error}"
|
|
462
|
+
"text": "{Error} If the operation fails."
|
|
416
463
|
},
|
|
417
464
|
{
|
|
418
465
|
"name": "since",
|
|
419
466
|
"text": "4.0.0"
|
|
420
467
|
}
|
|
421
468
|
],
|
|
422
|
-
"docs": "
|
|
469
|
+
"docs": "Cancel all delay conditions and apply the pending update immediately.\n\nIf you've set delay conditions with {@link setMultiDelay}, this method clears them\nand triggers the pending update to be applied on the next app background or restart.\n\nThis is useful when:\n- User manually requests to update now (e.g., clicks \"Update now\" button)\n- Your app detects it's a good time to update (e.g., user finished critical task)\n- You want to override a time-based delay early",
|
|
423
470
|
"complexTypes": [],
|
|
424
471
|
"slug": "canceldelay"
|
|
425
472
|
},
|
|
@@ -429,26 +476,30 @@
|
|
|
429
476
|
"parameters": [
|
|
430
477
|
{
|
|
431
478
|
"name": "options",
|
|
432
|
-
"docs": "",
|
|
479
|
+
"docs": "Optional {@link GetLatestOptions} to specify which channel to check.",
|
|
433
480
|
"type": "GetLatestOptions | undefined"
|
|
434
481
|
}
|
|
435
482
|
],
|
|
436
483
|
"returns": "Promise<LatestVersion>",
|
|
437
484
|
"tags": [
|
|
485
|
+
{
|
|
486
|
+
"name": "param",
|
|
487
|
+
"text": "options Optional {@link GetLatestOptions} to specify which channel to check."
|
|
488
|
+
},
|
|
438
489
|
{
|
|
439
490
|
"name": "returns",
|
|
440
|
-
"text": "
|
|
491
|
+
"text": "Information about the latest available bundle version."
|
|
441
492
|
},
|
|
442
493
|
{
|
|
443
494
|
"name": "throws",
|
|
444
|
-
"text": "{Error}"
|
|
495
|
+
"text": "{Error} Always throws when no new version is available (`error: \"no_new_version_available\"`), or when the request fails."
|
|
445
496
|
},
|
|
446
497
|
{
|
|
447
498
|
"name": "since",
|
|
448
499
|
"text": "4.0.0"
|
|
449
500
|
}
|
|
450
501
|
],
|
|
451
|
-
"docs": "
|
|
502
|
+
"docs": "Check the update server for the latest available bundle version.\n\nThis queries your configured update URL (or Capgo backend) to see if a newer bundle\nis available for download. It does NOT download the bundle automatically.\n\nThe response includes:\n- `version`: The latest available version identifier\n- `url`: Download URL for the bundle (if available)\n- `breaking`: Whether this update is marked as incompatible (requires native app update)\n- `message`: Optional message from the server\n- `manifest`: File list for partial updates (if using multi-file downloads)\n\nAfter receiving the latest version info, you can:\n1. Compare it with your current version\n2. Download it using {@link download}\n3. Apply it using {@link next} or {@link set}\n\n**Important: Error handling for \"no new version available\"**\n\nWhen the device's current version matches the latest version on the server (i.e., the device is already\nup-to-date), the server returns a 200 response with `error: \"no_new_version_available\"` and\n`message: \"No new version available\"`. **This causes `getLatest()` to throw an error**, even though\nthis is a normal, expected condition.\n\nYou should catch this specific error to handle it gracefully:\n\n```typescript\ntry {\n const latest = await CapacitorUpdater.getLatest();\n // New version is available, proceed with download\n} catch (error) {\n if (error.message === 'No new version available') {\n // Device is already on the latest version - this is normal\n console.log('Already up to date');\n } else {\n // Actual error occurred\n console.error('Failed to check for updates:', error);\n }\n}\n```\n\nIn this scenario, the server:\n- Logs the request with a \"No new version available\" message\n- Sends a \"noNew\" stat action to track that the device checked for updates but was already current (done on the backend)",
|
|
452
503
|
"complexTypes": [
|
|
453
504
|
"LatestVersion",
|
|
454
505
|
"GetLatestOptions"
|
|
@@ -461,7 +512,7 @@
|
|
|
461
512
|
"parameters": [
|
|
462
513
|
{
|
|
463
514
|
"name": "options",
|
|
464
|
-
"docs": "
|
|
515
|
+
"docs": "The {@link SetChannelOptions} containing the channel name and optional auto-update trigger.",
|
|
465
516
|
"type": "SetChannelOptions"
|
|
466
517
|
}
|
|
467
518
|
],
|
|
@@ -469,22 +520,22 @@
|
|
|
469
520
|
"tags": [
|
|
470
521
|
{
|
|
471
522
|
"name": "param",
|
|
472
|
-
"text": "options
|
|
523
|
+
"text": "options The {@link SetChannelOptions} containing the channel name and optional auto-update trigger."
|
|
473
524
|
},
|
|
474
525
|
{
|
|
475
526
|
"name": "returns",
|
|
476
|
-
"text": "
|
|
527
|
+
"text": "Channel operation result with status and optional error/message."
|
|
477
528
|
},
|
|
478
529
|
{
|
|
479
530
|
"name": "throws",
|
|
480
|
-
"text": "{Error}"
|
|
531
|
+
"text": "{Error} If the channel doesn't exist or doesn't allow self-assignment."
|
|
481
532
|
},
|
|
482
533
|
{
|
|
483
534
|
"name": "since",
|
|
484
535
|
"text": "4.7.0"
|
|
485
536
|
}
|
|
486
537
|
],
|
|
487
|
-
"docs": "
|
|
538
|
+
"docs": "Assign this device to a specific update channel at runtime.\n\nChannels allow you to distribute different bundle versions to different groups of users\n(e.g., \"production\", \"beta\", \"staging\"). This method switches the device to a new channel.\n\n**Requirements:**\n- The target channel must allow self-assignment (configured in your Capgo dashboard or backend)\n- The backend may accept or reject the request based on channel settings\n\n**When to use:**\n- After the app is ready and the user has interacted (e.g., opted into beta program)\n- To implement in-app channel switching (beta toggle, tester access, etc.)\n- For user-driven channel changes\n\n**When NOT to use:**\n- At app boot/initialization - use {@link PluginsConfig.CapacitorUpdater.defaultChannel} config instead\n- Before user interaction\n\n**Important: Listen for the `channelPrivate` event**\n\nWhen a user attempts to set a channel that doesn't allow device self-assignment, the method will\nthrow an error AND fire a {@link addListener}('channelPrivate') event. You should listen to this event\nto provide appropriate feedback to users:\n\n```typescript\nCapacitorUpdater.addListener('channelPrivate', (data) => {\n console.warn(`Cannot access channel \"${data.channel}\": ${data.message}`);\n // Show user-friendly message\n});\n```\n\nThis sends a request to the Capgo backend linking your device ID to the specified channel.",
|
|
488
539
|
"complexTypes": [
|
|
489
540
|
"ChannelRes",
|
|
490
541
|
"SetChannelOptions"
|
|
@@ -503,20 +554,28 @@
|
|
|
503
554
|
],
|
|
504
555
|
"returns": "Promise<void>",
|
|
505
556
|
"tags": [
|
|
557
|
+
{
|
|
558
|
+
"name": "param",
|
|
559
|
+
"text": "options"
|
|
560
|
+
},
|
|
561
|
+
{
|
|
562
|
+
"name": "link",
|
|
563
|
+
"text": "UnsetChannelOptions} containing optional auto-update trigger."
|
|
564
|
+
},
|
|
506
565
|
{
|
|
507
566
|
"name": "returns",
|
|
508
|
-
"text": "
|
|
567
|
+
"text": "Resolves when the channel is successfully unset."
|
|
509
568
|
},
|
|
510
569
|
{
|
|
511
570
|
"name": "throws",
|
|
512
|
-
"text": "{Error}"
|
|
571
|
+
"text": "{Error} If the operation fails."
|
|
513
572
|
},
|
|
514
573
|
{
|
|
515
574
|
"name": "since",
|
|
516
575
|
"text": "4.7.0"
|
|
517
576
|
}
|
|
518
577
|
],
|
|
519
|
-
"docs": "
|
|
578
|
+
"docs": "Remove the device's channel assignment and return to the default channel.\n\nThis unlinks the device from any specifically assigned channel, causing it to fall back to:\n- The {@link PluginsConfig.CapacitorUpdater.defaultChannel} if configured, or\n- Your backend's default channel for this app\n\nUse this when:\n- Users opt out of beta/testing programs\n- You want to reset a device to standard update distribution\n- Testing channel switching behavior",
|
|
520
579
|
"complexTypes": [
|
|
521
580
|
"UnsetChannelOptions"
|
|
522
581
|
],
|
|
@@ -530,30 +589,55 @@
|
|
|
530
589
|
"tags": [
|
|
531
590
|
{
|
|
532
591
|
"name": "returns",
|
|
533
|
-
"text": "
|
|
592
|
+
"text": "The current channel information."
|
|
534
593
|
},
|
|
535
594
|
{
|
|
536
595
|
"name": "throws",
|
|
537
|
-
"text": "{Error}"
|
|
596
|
+
"text": "{Error} If the operation fails."
|
|
538
597
|
},
|
|
539
598
|
{
|
|
540
599
|
"name": "since",
|
|
541
600
|
"text": "4.8.0"
|
|
542
601
|
}
|
|
543
602
|
],
|
|
544
|
-
"docs": "Get the channel
|
|
603
|
+
"docs": "Get the current channel assigned to this device.\n\nReturns information about:\n- `channel`: The currently assigned channel name (if any)\n- `allowSet`: Whether the channel allows self-assignment\n- `status`: Operation status\n- `error`/`message`: Additional information (if applicable)\n\nUse this to:\n- Display current channel to users (e.g., \"You're on the Beta channel\")\n- Check if a device is on a specific channel before showing features\n- Verify channel assignment after calling {@link setChannel}",
|
|
545
604
|
"complexTypes": [
|
|
546
605
|
"GetChannelRes"
|
|
547
606
|
],
|
|
548
607
|
"slug": "getchannel"
|
|
549
608
|
},
|
|
609
|
+
{
|
|
610
|
+
"name": "listChannels",
|
|
611
|
+
"signature": "() => Promise<ListChannelsResult>",
|
|
612
|
+
"parameters": [],
|
|
613
|
+
"returns": "Promise<ListChannelsResult>",
|
|
614
|
+
"tags": [
|
|
615
|
+
{
|
|
616
|
+
"name": "returns",
|
|
617
|
+
"text": "List of channels the device can self-assign to."
|
|
618
|
+
},
|
|
619
|
+
{
|
|
620
|
+
"name": "throws",
|
|
621
|
+
"text": "{Error} If the operation fails or the request to the backend fails."
|
|
622
|
+
},
|
|
623
|
+
{
|
|
624
|
+
"name": "since",
|
|
625
|
+
"text": "7.5.0"
|
|
626
|
+
}
|
|
627
|
+
],
|
|
628
|
+
"docs": "Get a list of all channels available for this device to self-assign to.\n\nOnly returns channels where `allow_self_set` is `true`. These are channels that\nusers can switch to using {@link setChannel} without backend administrator intervention.\n\nEach channel includes:\n- `id`: Unique channel identifier\n- `name`: Human-readable channel name\n- `public`: Whether the channel is publicly visible\n- `allow_self_set`: Always `true` in results (filtered to only self-assignable channels)\n\nUse this to:\n- Build a channel selector UI for users (e.g., \"Join Beta\" button)\n- Show available testing/preview channels\n- Implement channel discovery features",
|
|
629
|
+
"complexTypes": [
|
|
630
|
+
"ListChannelsResult"
|
|
631
|
+
],
|
|
632
|
+
"slug": "listchannels"
|
|
633
|
+
},
|
|
550
634
|
{
|
|
551
635
|
"name": "setCustomId",
|
|
552
636
|
"signature": "(options: SetCustomIdOptions) => Promise<void>",
|
|
553
637
|
"parameters": [
|
|
554
638
|
{
|
|
555
639
|
"name": "options",
|
|
556
|
-
"docs": "
|
|
640
|
+
"docs": "The {@link SetCustomIdOptions} containing the custom identifier string.",
|
|
557
641
|
"type": "SetCustomIdOptions"
|
|
558
642
|
}
|
|
559
643
|
],
|
|
@@ -561,22 +645,22 @@
|
|
|
561
645
|
"tags": [
|
|
562
646
|
{
|
|
563
647
|
"name": "param",
|
|
564
|
-
"text": "options
|
|
648
|
+
"text": "options The {@link SetCustomIdOptions} containing the custom identifier string."
|
|
565
649
|
},
|
|
566
650
|
{
|
|
567
651
|
"name": "returns",
|
|
568
|
-
"text": "
|
|
652
|
+
"text": "Resolves immediately (synchronous operation)."
|
|
569
653
|
},
|
|
570
654
|
{
|
|
571
655
|
"name": "throws",
|
|
572
|
-
"text": "{Error}"
|
|
656
|
+
"text": "{Error} If the operation fails."
|
|
573
657
|
},
|
|
574
658
|
{
|
|
575
659
|
"name": "since",
|
|
576
660
|
"text": "4.9.0"
|
|
577
661
|
}
|
|
578
662
|
],
|
|
579
|
-
"docs": "Set a custom
|
|
663
|
+
"docs": "Set a custom identifier for this device.\n\nThis allows you to identify devices by your own custom ID (user ID, account ID, etc.)\ninstead of or in addition to the device's unique hardware ID. The custom ID is sent\nto your update server and can be used for:\n- Targeting specific users for updates\n- Analytics and user tracking\n- Debugging and support (correlating devices with users)\n- A/B testing or feature flagging\n\n**Persistence:**\n- When {@link PluginsConfig.CapacitorUpdater.persistCustomId} is `true`, the ID persists across app restarts\n- When `false`, the ID is only kept for the current session\n\n**Clearing the custom ID:**\n- Pass an empty string `\"\"` to remove any stored custom ID",
|
|
580
664
|
"complexTypes": [
|
|
581
665
|
"SetCustomIdOptions"
|
|
582
666
|
],
|
|
@@ -590,14 +674,14 @@
|
|
|
590
674
|
"tags": [
|
|
591
675
|
{
|
|
592
676
|
"name": "returns",
|
|
593
|
-
"text": "
|
|
677
|
+
"text": "The builtin bundle version string."
|
|
594
678
|
},
|
|
595
679
|
{
|
|
596
680
|
"name": "since",
|
|
597
681
|
"text": "5.2.0"
|
|
598
682
|
}
|
|
599
683
|
],
|
|
600
|
-
"docs": "Get the native app version or the
|
|
684
|
+
"docs": "Get the builtin bundle version (the original version shipped with your native app).\n\nThis returns the version of the bundle that was included when the app was installed\nfrom the App Store or Play Store. This is NOT the currently active bundle version -\nuse {@link current} for that.\n\nReturns:\n- The {@link PluginsConfig.CapacitorUpdater.version} config value if set, or\n- The native app version from platform configs (package.json, Info.plist, build.gradle)\n\nUse this to:\n- Display the \"factory\" version to users\n- Compare against downloaded bundle versions\n- Determine if any updates have been applied\n- Debugging version mismatches",
|
|
601
685
|
"complexTypes": [
|
|
602
686
|
"BuiltinVersion"
|
|
603
687
|
],
|
|
@@ -611,14 +695,14 @@
|
|
|
611
695
|
"tags": [
|
|
612
696
|
{
|
|
613
697
|
"name": "returns",
|
|
614
|
-
"text": "
|
|
698
|
+
"text": "The unique device identifier string."
|
|
615
699
|
},
|
|
616
700
|
{
|
|
617
701
|
"name": "throws",
|
|
618
|
-
"text": "{Error}"
|
|
702
|
+
"text": "{Error} If the operation fails."
|
|
619
703
|
}
|
|
620
704
|
],
|
|
621
|
-
"docs": "Get unique ID used to identify device (
|
|
705
|
+
"docs": "Get the unique, privacy-friendly identifier for this device.\n\nThis ID is used to identify the device when communicating with update servers.\nIt's automatically generated and stored securely by the plugin.\n\n**Privacy & Security characteristics:**\n- Generated as a UUID (not based on hardware identifiers)\n- Stored securely in platform-specific secure storage\n- Android: Android Keystore (persists across app reinstalls on API 23+)\n- iOS: Keychain with `kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly`\n- Not synced to cloud (iOS)\n- Follows Apple and Google privacy best practices\n- Users can clear it via system settings (Android) or keychain access (iOS)\n\n**Persistence:**\nThe device ID persists across app reinstalls to maintain consistent device identity\nfor update tracking and analytics.\n\nUse this to:\n- Debug update delivery issues (check what ID the server sees)\n- Implement device-specific features\n- Correlate server logs with specific devices",
|
|
622
706
|
"complexTypes": [
|
|
623
707
|
"DeviceId"
|
|
624
708
|
],
|
|
@@ -632,14 +716,14 @@
|
|
|
632
716
|
"tags": [
|
|
633
717
|
{
|
|
634
718
|
"name": "returns",
|
|
635
|
-
"text": "
|
|
719
|
+
"text": "The Capacitor Updater plugin version string."
|
|
636
720
|
},
|
|
637
721
|
{
|
|
638
722
|
"name": "throws",
|
|
639
|
-
"text": "{Error}"
|
|
723
|
+
"text": "{Error} If the operation fails."
|
|
640
724
|
}
|
|
641
725
|
],
|
|
642
|
-
"docs": "Get the
|
|
726
|
+
"docs": "Get the version of the Capacitor Updater plugin installed in your app.\n\nThis returns the version of the native plugin code (Android/iOS), which is sent\nto the update server with each request. This is NOT your app version or bundle version.\n\nUse this to:\n- Debug plugin-specific issues (when reporting bugs)\n- Verify plugin installation and version\n- Check compatibility with backend features\n- Display in debug/about screens",
|
|
643
727
|
"complexTypes": [
|
|
644
728
|
"PluginVersion"
|
|
645
729
|
],
|
|
@@ -653,14 +737,14 @@
|
|
|
653
737
|
"tags": [
|
|
654
738
|
{
|
|
655
739
|
"name": "returns",
|
|
656
|
-
"text": "
|
|
740
|
+
"text": "`true` if auto-update is enabled, `false` if in manual mode."
|
|
657
741
|
},
|
|
658
742
|
{
|
|
659
743
|
"name": "throws",
|
|
660
|
-
"text": "{Error}"
|
|
744
|
+
"text": "{Error} If the operation fails."
|
|
661
745
|
}
|
|
662
746
|
],
|
|
663
|
-
"docs": "
|
|
747
|
+
"docs": "Check if automatic updates are currently enabled.\n\nReturns `true` if {@link PluginsConfig.CapacitorUpdater.autoUpdate} is enabled,\nmeaning the plugin will automatically check for, download, and apply updates.\n\nReturns `false` if in manual mode, where you control the update flow using\n{@link getLatest}, {@link download}, {@link next}, and {@link set}.\n\nUse this to:\n- Determine which update flow your app is using\n- Show/hide manual update UI based on mode\n- Debug update behavior",
|
|
664
748
|
"complexTypes": [
|
|
665
749
|
"AutoUpdateEnabled"
|
|
666
750
|
],
|
|
@@ -672,12 +756,16 @@
|
|
|
672
756
|
"parameters": [],
|
|
673
757
|
"returns": "Promise<void>",
|
|
674
758
|
"tags": [
|
|
759
|
+
{
|
|
760
|
+
"name": "returns",
|
|
761
|
+
"text": "Resolves when all listeners are removed."
|
|
762
|
+
},
|
|
675
763
|
{
|
|
676
764
|
"name": "since",
|
|
677
765
|
"text": "1.0.0"
|
|
678
766
|
}
|
|
679
767
|
],
|
|
680
|
-
"docs": "Remove all listeners for this plugin.",
|
|
768
|
+
"docs": "Remove all event listeners registered for this plugin.\n\nThis unregisters all listeners added via {@link addListener} for all event types:\n- `download`\n- `noNeedUpdate`\n- `updateAvailable`\n- `downloadComplete`\n- `downloadFailed`\n- `breakingAvailable` / `majorAvailable`\n- `updateFailed`\n- `appReloaded`\n- `appReady`\n\nUse this during cleanup (e.g., when unmounting components or closing screens)\nto prevent memory leaks from lingering event listeners.",
|
|
681
769
|
"complexTypes": [],
|
|
682
770
|
"slug": "removealllisteners"
|
|
683
771
|
},
|
|
@@ -703,7 +791,7 @@
|
|
|
703
791
|
"text": "2.0.11"
|
|
704
792
|
}
|
|
705
793
|
],
|
|
706
|
-
"docs": "Listen for bundle download event in the App. Fires once a download has started, during downloading and when finished
|
|
794
|
+
"docs": "Listen for bundle download event in the App. Fires once a download has started, during downloading and when finished.\nThis will return you all download percent during the download",
|
|
707
795
|
"complexTypes": [
|
|
708
796
|
"PluginListenerHandle",
|
|
709
797
|
"DownloadEvent"
|
|
@@ -797,6 +885,35 @@
|
|
|
797
885
|
],
|
|
798
886
|
"slug": "addlistenerdownloadcomplete-"
|
|
799
887
|
},
|
|
888
|
+
{
|
|
889
|
+
"name": "addListener",
|
|
890
|
+
"signature": "(eventName: 'breakingAvailable', listenerFunc: (state: BreakingAvailableEvent) => void) => Promise<PluginListenerHandle>",
|
|
891
|
+
"parameters": [
|
|
892
|
+
{
|
|
893
|
+
"name": "eventName",
|
|
894
|
+
"docs": "",
|
|
895
|
+
"type": "'breakingAvailable'"
|
|
896
|
+
},
|
|
897
|
+
{
|
|
898
|
+
"name": "listenerFunc",
|
|
899
|
+
"docs": "",
|
|
900
|
+
"type": "(state: MajorAvailableEvent) => void"
|
|
901
|
+
}
|
|
902
|
+
],
|
|
903
|
+
"returns": "Promise<PluginListenerHandle>",
|
|
904
|
+
"tags": [
|
|
905
|
+
{
|
|
906
|
+
"name": "since",
|
|
907
|
+
"text": "7.22.0"
|
|
908
|
+
}
|
|
909
|
+
],
|
|
910
|
+
"docs": "Listen for breaking update events when the backend flags an update as incompatible with the current app.\nEmits the same payload as the legacy `majorAvailable` listener.",
|
|
911
|
+
"complexTypes": [
|
|
912
|
+
"PluginListenerHandle",
|
|
913
|
+
"BreakingAvailableEvent"
|
|
914
|
+
],
|
|
915
|
+
"slug": "addlistenerbreakingavailable-"
|
|
916
|
+
},
|
|
800
917
|
{
|
|
801
918
|
"name": "addListener",
|
|
802
919
|
"signature": "(eventName: 'majorAvailable', listenerFunc: (state: MajorAvailableEvent) => void) => Promise<PluginListenerHandle>",
|
|
@@ -814,6 +931,10 @@
|
|
|
814
931
|
],
|
|
815
932
|
"returns": "Promise<PluginListenerHandle>",
|
|
816
933
|
"tags": [
|
|
934
|
+
{
|
|
935
|
+
"name": "deprecated",
|
|
936
|
+
"text": "Deprecated alias for {@link addListener} with `breakingAvailable`. Emits the same payload. will be removed in v8"
|
|
937
|
+
},
|
|
817
938
|
{
|
|
818
939
|
"name": "since",
|
|
819
940
|
"text": "2.3.0"
|
|
@@ -934,13 +1055,42 @@
|
|
|
934
1055
|
"text": "5.1.0"
|
|
935
1056
|
}
|
|
936
1057
|
],
|
|
937
|
-
"docs": "Listen for app ready event in the App, let you know when app is ready to use",
|
|
1058
|
+
"docs": "Listen for app ready event in the App, let you know when app is ready to use, this event is retain till consumed.",
|
|
938
1059
|
"complexTypes": [
|
|
939
1060
|
"PluginListenerHandle",
|
|
940
1061
|
"AppReadyEvent"
|
|
941
1062
|
],
|
|
942
1063
|
"slug": "addlistenerappready-"
|
|
943
1064
|
},
|
|
1065
|
+
{
|
|
1066
|
+
"name": "addListener",
|
|
1067
|
+
"signature": "(eventName: 'channelPrivate', listenerFunc: (state: ChannelPrivateEvent) => void) => Promise<PluginListenerHandle>",
|
|
1068
|
+
"parameters": [
|
|
1069
|
+
{
|
|
1070
|
+
"name": "eventName",
|
|
1071
|
+
"docs": "",
|
|
1072
|
+
"type": "'channelPrivate'"
|
|
1073
|
+
},
|
|
1074
|
+
{
|
|
1075
|
+
"name": "listenerFunc",
|
|
1076
|
+
"docs": "",
|
|
1077
|
+
"type": "(state: ChannelPrivateEvent) => void"
|
|
1078
|
+
}
|
|
1079
|
+
],
|
|
1080
|
+
"returns": "Promise<PluginListenerHandle>",
|
|
1081
|
+
"tags": [
|
|
1082
|
+
{
|
|
1083
|
+
"name": "since",
|
|
1084
|
+
"text": "7.34.0"
|
|
1085
|
+
}
|
|
1086
|
+
],
|
|
1087
|
+
"docs": "Listen for channel private event, fired when attempting to set a channel that doesn't allow device self-assignment.\n\nThis event is useful for:\n- Informing users they don't have permission to switch to a specific channel\n- Implementing custom error handling for channel restrictions\n- Logging unauthorized channel access attempts",
|
|
1088
|
+
"complexTypes": [
|
|
1089
|
+
"PluginListenerHandle",
|
|
1090
|
+
"ChannelPrivateEvent"
|
|
1091
|
+
],
|
|
1092
|
+
"slug": "addlistenerchannelprivate-"
|
|
1093
|
+
},
|
|
944
1094
|
{
|
|
945
1095
|
"name": "isAutoUpdateAvailable",
|
|
946
1096
|
"signature": "() => Promise<AutoUpdateAvailable>",
|
|
@@ -949,14 +1099,14 @@
|
|
|
949
1099
|
"tags": [
|
|
950
1100
|
{
|
|
951
1101
|
"name": "returns",
|
|
952
|
-
"text": "
|
|
1102
|
+
"text": "`false` when custom updateUrl is set, `true` otherwise."
|
|
953
1103
|
},
|
|
954
1104
|
{
|
|
955
1105
|
"name": "throws",
|
|
956
|
-
"text": "{Error}"
|
|
1106
|
+
"text": "{Error} If the operation fails."
|
|
957
1107
|
}
|
|
958
1108
|
],
|
|
959
|
-
"docs": "
|
|
1109
|
+
"docs": "Check if the auto-update feature is available (not disabled by custom server configuration).\n\nReturns `false` when a custom `updateUrl` is configured, as this typically indicates\nyou're using a self-hosted update server that may not support all auto-update features.\n\nReturns `true` when using the default Capgo backend or when the feature is available.\n\nThis is different from {@link isAutoUpdateEnabled}:\n- `isAutoUpdateEnabled()`: Checks if auto-update MODE is turned on/off\n- `isAutoUpdateAvailable()`: Checks if auto-update is SUPPORTED with your current configuration",
|
|
960
1110
|
"complexTypes": [
|
|
961
1111
|
"AutoUpdateAvailable"
|
|
962
1112
|
],
|
|
@@ -970,22 +1120,175 @@
|
|
|
970
1120
|
"tags": [
|
|
971
1121
|
{
|
|
972
1122
|
"name": "returns",
|
|
973
|
-
"text": "
|
|
1123
|
+
"text": "The pending bundle info, or `null` if none is queued."
|
|
974
1124
|
},
|
|
975
1125
|
{
|
|
976
1126
|
"name": "throws",
|
|
977
|
-
"text": "{Error}"
|
|
1127
|
+
"text": "{Error} If the operation fails."
|
|
978
1128
|
},
|
|
979
1129
|
{
|
|
980
1130
|
"name": "since",
|
|
981
1131
|
"text": "6.8.0"
|
|
982
1132
|
}
|
|
983
1133
|
],
|
|
984
|
-
"docs": "Get the
|
|
1134
|
+
"docs": "Get information about the bundle queued to be activated on next reload.\n\nReturns:\n- {@link BundleInfo} object if a bundle has been queued via {@link next}\n- `null` if no update is pending\n\nThis is useful to:\n- Check if an update is waiting to be applied\n- Display \"Update pending\" status to users\n- Show version info of the queued update\n- Decide whether to show a \"Restart to update\" prompt\n\nThe queued bundle will be activated when:\n- The app is backgrounded (default behavior)\n- The app is killed and restarted\n- {@link reload} is called manually\n- Delay conditions set by {@link setMultiDelay} are met",
|
|
985
1135
|
"complexTypes": [
|
|
986
1136
|
"BundleInfo"
|
|
987
1137
|
],
|
|
988
1138
|
"slug": "getnextbundle"
|
|
1139
|
+
},
|
|
1140
|
+
{
|
|
1141
|
+
"name": "getFailedUpdate",
|
|
1142
|
+
"signature": "() => Promise<UpdateFailedEvent | null>",
|
|
1143
|
+
"parameters": [],
|
|
1144
|
+
"returns": "Promise<UpdateFailedEvent | null>",
|
|
1145
|
+
"tags": [
|
|
1146
|
+
{
|
|
1147
|
+
"name": "returns",
|
|
1148
|
+
"text": "The failed update info (cleared after first retrieval), or `null`."
|
|
1149
|
+
},
|
|
1150
|
+
{
|
|
1151
|
+
"name": "throws",
|
|
1152
|
+
"text": "{Error} If the operation fails."
|
|
1153
|
+
},
|
|
1154
|
+
{
|
|
1155
|
+
"name": "since",
|
|
1156
|
+
"text": "7.22.0"
|
|
1157
|
+
}
|
|
1158
|
+
],
|
|
1159
|
+
"docs": "Retrieve information about the most recent bundle that failed to load.\n\nWhen a bundle fails to load (e.g., JavaScript errors prevent initialization, missing files),\nthe plugin automatically rolls back and stores information about the failure. This method\nretrieves that failure information.\n\n**IMPORTANT: The stored value is cleared after being retrieved once.**\nCalling this method multiple times will only return the failure info on the first call,\nthen `null` on subsequent calls until another failure occurs.\n\nReturns:\n- {@link UpdateFailedEvent} with bundle info if a failure was recorded\n- `null` if no failure has occurred or if it was already retrieved\n\nUse this to:\n- Show users why an update failed\n- Log failure information for debugging\n- Implement custom error handling/reporting\n- Display rollback notifications",
|
|
1160
|
+
"complexTypes": [
|
|
1161
|
+
"UpdateFailedEvent"
|
|
1162
|
+
],
|
|
1163
|
+
"slug": "getfailedupdate"
|
|
1164
|
+
},
|
|
1165
|
+
{
|
|
1166
|
+
"name": "setShakeMenu",
|
|
1167
|
+
"signature": "(options: SetShakeMenuOptions) => Promise<void>",
|
|
1168
|
+
"parameters": [
|
|
1169
|
+
{
|
|
1170
|
+
"name": "options",
|
|
1171
|
+
"docs": "",
|
|
1172
|
+
"type": "SetShakeMenuOptions"
|
|
1173
|
+
}
|
|
1174
|
+
],
|
|
1175
|
+
"returns": "Promise<void>",
|
|
1176
|
+
"tags": [
|
|
1177
|
+
{
|
|
1178
|
+
"name": "param",
|
|
1179
|
+
"text": "options"
|
|
1180
|
+
},
|
|
1181
|
+
{
|
|
1182
|
+
"name": "link",
|
|
1183
|
+
"text": "SetShakeMenuOptions} with `enabled: true` to enable or `enabled: false` to disable."
|
|
1184
|
+
},
|
|
1185
|
+
{
|
|
1186
|
+
"name": "returns",
|
|
1187
|
+
"text": "Resolves when the setting is applied."
|
|
1188
|
+
},
|
|
1189
|
+
{
|
|
1190
|
+
"name": "throws",
|
|
1191
|
+
"text": "{Error} If the operation fails."
|
|
1192
|
+
},
|
|
1193
|
+
{
|
|
1194
|
+
"name": "since",
|
|
1195
|
+
"text": "7.5.0"
|
|
1196
|
+
}
|
|
1197
|
+
],
|
|
1198
|
+
"docs": "Enable or disable the shake gesture menu for debugging and testing.\n\nWhen enabled, users can shake their device to open a debug menu that shows:\n- Current bundle information\n- Available bundles\n- Options to switch bundles manually\n- Update status\n\nThis is useful during development and testing to:\n- Quickly test different bundle versions\n- Debug update flows\n- Switch between production and test bundles\n- Verify bundle installations\n\n**Important:** Disable this in production builds or only enable for internal testers.\n\nCan also be configured via {@link PluginsConfig.CapacitorUpdater.shakeMenu}.",
|
|
1199
|
+
"complexTypes": [
|
|
1200
|
+
"SetShakeMenuOptions"
|
|
1201
|
+
],
|
|
1202
|
+
"slug": "setshakemenu"
|
|
1203
|
+
},
|
|
1204
|
+
{
|
|
1205
|
+
"name": "isShakeMenuEnabled",
|
|
1206
|
+
"signature": "() => Promise<ShakeMenuEnabled>",
|
|
1207
|
+
"parameters": [],
|
|
1208
|
+
"returns": "Promise<ShakeMenuEnabled>",
|
|
1209
|
+
"tags": [
|
|
1210
|
+
{
|
|
1211
|
+
"name": "returns",
|
|
1212
|
+
"text": "Object with `enabled: true` or `enabled: false`."
|
|
1213
|
+
},
|
|
1214
|
+
{
|
|
1215
|
+
"name": "throws",
|
|
1216
|
+
"text": "{Error} If the operation fails."
|
|
1217
|
+
},
|
|
1218
|
+
{
|
|
1219
|
+
"name": "since",
|
|
1220
|
+
"text": "7.5.0"
|
|
1221
|
+
}
|
|
1222
|
+
],
|
|
1223
|
+
"docs": "Check if the shake gesture debug menu is currently enabled.\n\nReturns the current state of the shake menu feature that can be toggled via\n{@link setShakeMenu} or configured via {@link PluginsConfig.CapacitorUpdater.shakeMenu}.\n\nUse this to:\n- Check if debug features are enabled\n- Show/hide debug settings UI\n- Verify configuration during testing",
|
|
1224
|
+
"complexTypes": [
|
|
1225
|
+
"ShakeMenuEnabled"
|
|
1226
|
+
],
|
|
1227
|
+
"slug": "isshakemenuenabled"
|
|
1228
|
+
},
|
|
1229
|
+
{
|
|
1230
|
+
"name": "getAppId",
|
|
1231
|
+
"signature": "() => Promise<GetAppIdRes>",
|
|
1232
|
+
"parameters": [],
|
|
1233
|
+
"returns": "Promise<GetAppIdRes>",
|
|
1234
|
+
"tags": [
|
|
1235
|
+
{
|
|
1236
|
+
"name": "returns",
|
|
1237
|
+
"text": "Object containing the current `appId` string."
|
|
1238
|
+
},
|
|
1239
|
+
{
|
|
1240
|
+
"name": "throws",
|
|
1241
|
+
"text": "{Error} If the operation fails."
|
|
1242
|
+
},
|
|
1243
|
+
{
|
|
1244
|
+
"name": "since",
|
|
1245
|
+
"text": "7.14.0"
|
|
1246
|
+
}
|
|
1247
|
+
],
|
|
1248
|
+
"docs": "Get the currently configured App ID used for update server communication.\n\nReturns the App ID that identifies this app to the update server. This can be:\n- The value set via {@link setAppId}, or\n- The {@link PluginsConfig.CapacitorUpdater.appId} config value, or\n- The default app identifier from your native app configuration\n\nUse this to:\n- Verify which App ID is being used for updates\n- Debug update delivery issues\n- Display app configuration in debug screens\n- Confirm App ID after calling {@link setAppId}",
|
|
1249
|
+
"complexTypes": [
|
|
1250
|
+
"GetAppIdRes"
|
|
1251
|
+
],
|
|
1252
|
+
"slug": "getappid"
|
|
1253
|
+
},
|
|
1254
|
+
{
|
|
1255
|
+
"name": "setAppId",
|
|
1256
|
+
"signature": "(options: SetAppIdOptions) => Promise<void>",
|
|
1257
|
+
"parameters": [
|
|
1258
|
+
{
|
|
1259
|
+
"name": "options",
|
|
1260
|
+
"docs": "",
|
|
1261
|
+
"type": "SetAppIdOptions"
|
|
1262
|
+
}
|
|
1263
|
+
],
|
|
1264
|
+
"returns": "Promise<void>",
|
|
1265
|
+
"tags": [
|
|
1266
|
+
{
|
|
1267
|
+
"name": "param",
|
|
1268
|
+
"text": "options"
|
|
1269
|
+
},
|
|
1270
|
+
{
|
|
1271
|
+
"name": "link",
|
|
1272
|
+
"text": "SetAppIdOptions} containing the new App ID string."
|
|
1273
|
+
},
|
|
1274
|
+
{
|
|
1275
|
+
"name": "returns",
|
|
1276
|
+
"text": "Resolves when the App ID is successfully changed."
|
|
1277
|
+
},
|
|
1278
|
+
{
|
|
1279
|
+
"name": "throws",
|
|
1280
|
+
"text": "{Error} If `allowModifyAppId` is false or the operation fails."
|
|
1281
|
+
},
|
|
1282
|
+
{
|
|
1283
|
+
"name": "since",
|
|
1284
|
+
"text": "7.14.0"
|
|
1285
|
+
}
|
|
1286
|
+
],
|
|
1287
|
+
"docs": "Dynamically change the App ID used for update server communication.\n\nThis overrides the App ID used to identify your app to the update server, allowing you\nto switch between different app configurations at runtime (e.g., production vs staging\napp IDs, or multi-tenant configurations).\n\n**Requirements:**\n- {@link PluginsConfig.CapacitorUpdater.allowModifyAppId} must be set to `true`\n\n**Important considerations:**\n- Changing the App ID will affect which updates this device receives\n- The new App ID must exist on your update server\n- This is primarily for advanced use cases (multi-tenancy, environment switching)\n- Most apps should use the config-based {@link PluginsConfig.CapacitorUpdater.appId} instead",
|
|
1288
|
+
"complexTypes": [
|
|
1289
|
+
"SetAppIdOptions"
|
|
1290
|
+
],
|
|
1291
|
+
"slug": "setappid"
|
|
989
1292
|
}
|
|
990
1293
|
],
|
|
991
1294
|
"properties": []
|
|
@@ -1106,7 +1409,7 @@
|
|
|
1106
1409
|
{
|
|
1107
1410
|
"name": "DownloadOptions",
|
|
1108
1411
|
"slug": "downloadoptions",
|
|
1109
|
-
"docs": "",
|
|
1412
|
+
"docs": "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.\nIf you don't use backend, you need to provide the URL and version of the bundle. Checksum and sessionKey are required if you encrypted the bundle with the CLI command encrypt, you should receive them as result of the command.",
|
|
1110
1413
|
"tags": [],
|
|
1111
1414
|
"methods": [],
|
|
1112
1415
|
"properties": [
|
|
@@ -1115,7 +1418,7 @@
|
|
|
1115
1418
|
"tags": [],
|
|
1116
1419
|
"docs": "The URL of the bundle zip file (e.g: dist.zip) to be downloaded. (This can be any URL. E.g: Amazon S3, a GitHub tag, any other place you've hosted your bundle.)",
|
|
1117
1420
|
"complexTypes": [],
|
|
1118
|
-
"type": "string
|
|
1421
|
+
"type": "string"
|
|
1119
1422
|
},
|
|
1120
1423
|
{
|
|
1121
1424
|
"name": "version",
|
|
@@ -1136,7 +1439,7 @@
|
|
|
1136
1439
|
"name": "default"
|
|
1137
1440
|
}
|
|
1138
1441
|
],
|
|
1139
|
-
"docs": "The session key for the update",
|
|
1442
|
+
"docs": "The session key for the update, when the bundle is encrypted with a session key",
|
|
1140
1443
|
"complexTypes": [],
|
|
1141
1444
|
"type": "string | undefined"
|
|
1142
1445
|
},
|
|
@@ -1152,16 +1455,64 @@
|
|
|
1152
1455
|
"name": "default"
|
|
1153
1456
|
}
|
|
1154
1457
|
],
|
|
1155
|
-
"docs": "The checksum for the update",
|
|
1458
|
+
"docs": "The checksum for the update, it should be in sha256 and encrypted with private key if the bundle is encrypted",
|
|
1156
1459
|
"complexTypes": [],
|
|
1157
1460
|
"type": "string | undefined"
|
|
1461
|
+
},
|
|
1462
|
+
{
|
|
1463
|
+
"name": "manifest",
|
|
1464
|
+
"tags": [
|
|
1465
|
+
{
|
|
1466
|
+
"text": "6.1.0",
|
|
1467
|
+
"name": "since"
|
|
1468
|
+
},
|
|
1469
|
+
{
|
|
1470
|
+
"text": "undefined",
|
|
1471
|
+
"name": "default"
|
|
1472
|
+
}
|
|
1473
|
+
],
|
|
1474
|
+
"docs": "The manifest for multi-file downloads",
|
|
1475
|
+
"complexTypes": [
|
|
1476
|
+
"ManifestEntry"
|
|
1477
|
+
],
|
|
1478
|
+
"type": "ManifestEntry[] | undefined"
|
|
1158
1479
|
}
|
|
1159
1480
|
]
|
|
1160
1481
|
},
|
|
1161
1482
|
{
|
|
1162
|
-
"name": "
|
|
1163
|
-
"slug": "
|
|
1164
|
-
"docs": "",
|
|
1483
|
+
"name": "ManifestEntry",
|
|
1484
|
+
"slug": "manifestentry",
|
|
1485
|
+
"docs": "",
|
|
1486
|
+
"tags": [],
|
|
1487
|
+
"methods": [],
|
|
1488
|
+
"properties": [
|
|
1489
|
+
{
|
|
1490
|
+
"name": "file_name",
|
|
1491
|
+
"tags": [],
|
|
1492
|
+
"docs": "",
|
|
1493
|
+
"complexTypes": [],
|
|
1494
|
+
"type": "string | null"
|
|
1495
|
+
},
|
|
1496
|
+
{
|
|
1497
|
+
"name": "file_hash",
|
|
1498
|
+
"tags": [],
|
|
1499
|
+
"docs": "",
|
|
1500
|
+
"complexTypes": [],
|
|
1501
|
+
"type": "string | null"
|
|
1502
|
+
},
|
|
1503
|
+
{
|
|
1504
|
+
"name": "download_url",
|
|
1505
|
+
"tags": [],
|
|
1506
|
+
"docs": "",
|
|
1507
|
+
"complexTypes": [],
|
|
1508
|
+
"type": "string | null"
|
|
1509
|
+
}
|
|
1510
|
+
]
|
|
1511
|
+
},
|
|
1512
|
+
{
|
|
1513
|
+
"name": "BundleId",
|
|
1514
|
+
"slug": "bundleid",
|
|
1515
|
+
"docs": "",
|
|
1165
1516
|
"tags": [],
|
|
1166
1517
|
"methods": [],
|
|
1167
1518
|
"properties": [
|
|
@@ -1341,9 +1692,26 @@
|
|
|
1341
1692
|
"complexTypes": [],
|
|
1342
1693
|
"type": "string | undefined"
|
|
1343
1694
|
},
|
|
1695
|
+
{
|
|
1696
|
+
"name": "breaking",
|
|
1697
|
+
"tags": [
|
|
1698
|
+
{
|
|
1699
|
+
"text": "7.22.0",
|
|
1700
|
+
"name": "since"
|
|
1701
|
+
}
|
|
1702
|
+
],
|
|
1703
|
+
"docs": "Indicates whether the update was flagged as breaking by the backend.",
|
|
1704
|
+
"complexTypes": [],
|
|
1705
|
+
"type": "boolean | undefined"
|
|
1706
|
+
},
|
|
1344
1707
|
{
|
|
1345
1708
|
"name": "major",
|
|
1346
|
-
"tags": [
|
|
1709
|
+
"tags": [
|
|
1710
|
+
{
|
|
1711
|
+
"text": "Use {@link LatestVersion.breaking} instead.",
|
|
1712
|
+
"name": "deprecated"
|
|
1713
|
+
}
|
|
1714
|
+
],
|
|
1347
1715
|
"docs": "",
|
|
1348
1716
|
"complexTypes": [],
|
|
1349
1717
|
"type": "boolean | undefined"
|
|
@@ -1351,7 +1719,7 @@
|
|
|
1351
1719
|
{
|
|
1352
1720
|
"name": "message",
|
|
1353
1721
|
"tags": [],
|
|
1354
|
-
"docs": "",
|
|
1722
|
+
"docs": "Optional message from the server.\nWhen no new version is available, this will be \"No new version available\".",
|
|
1355
1723
|
"complexTypes": [],
|
|
1356
1724
|
"type": "string | undefined"
|
|
1357
1725
|
},
|
|
@@ -1365,21 +1733,21 @@
|
|
|
1365
1733
|
{
|
|
1366
1734
|
"name": "error",
|
|
1367
1735
|
"tags": [],
|
|
1368
|
-
"docs": "",
|
|
1736
|
+
"docs": "Error code from the server, if any.\nCommon values:\n- `\"no_new_version_available\"`: Device is already on the latest version (not a failure)\n- Other error codes indicate actual failures in the update process",
|
|
1369
1737
|
"complexTypes": [],
|
|
1370
1738
|
"type": "string | undefined"
|
|
1371
1739
|
},
|
|
1372
1740
|
{
|
|
1373
1741
|
"name": "old",
|
|
1374
1742
|
"tags": [],
|
|
1375
|
-
"docs": "",
|
|
1743
|
+
"docs": "The previous/current version name (provided for reference).",
|
|
1376
1744
|
"complexTypes": [],
|
|
1377
1745
|
"type": "string | undefined"
|
|
1378
1746
|
},
|
|
1379
1747
|
{
|
|
1380
1748
|
"name": "url",
|
|
1381
1749
|
"tags": [],
|
|
1382
|
-
"docs": "",
|
|
1750
|
+
"docs": "Download URL for the bundle (when a new version is available).",
|
|
1383
1751
|
"complexTypes": [],
|
|
1384
1752
|
"type": "string | undefined"
|
|
1385
1753
|
},
|
|
@@ -1391,41 +1759,35 @@
|
|
|
1391
1759
|
"name": "since"
|
|
1392
1760
|
}
|
|
1393
1761
|
],
|
|
1394
|
-
"docs": "",
|
|
1762
|
+
"docs": "File list for partial updates (when using multi-file downloads).",
|
|
1395
1763
|
"complexTypes": [
|
|
1396
1764
|
"ManifestEntry"
|
|
1397
1765
|
],
|
|
1398
1766
|
"type": "ManifestEntry[] | undefined"
|
|
1399
|
-
}
|
|
1400
|
-
]
|
|
1401
|
-
},
|
|
1402
|
-
{
|
|
1403
|
-
"name": "ManifestEntry",
|
|
1404
|
-
"slug": "manifestentry",
|
|
1405
|
-
"docs": "",
|
|
1406
|
-
"tags": [],
|
|
1407
|
-
"methods": [],
|
|
1408
|
-
"properties": [
|
|
1409
|
-
{
|
|
1410
|
-
"name": "file_name",
|
|
1411
|
-
"tags": [],
|
|
1412
|
-
"docs": "",
|
|
1413
|
-
"complexTypes": [],
|
|
1414
|
-
"type": "string | null"
|
|
1415
1767
|
},
|
|
1416
1768
|
{
|
|
1417
|
-
"name": "
|
|
1418
|
-
"tags": [
|
|
1419
|
-
|
|
1769
|
+
"name": "link",
|
|
1770
|
+
"tags": [
|
|
1771
|
+
{
|
|
1772
|
+
"text": "7.35.0",
|
|
1773
|
+
"name": "since"
|
|
1774
|
+
}
|
|
1775
|
+
],
|
|
1776
|
+
"docs": "Optional link associated with this bundle version (e.g., release notes URL, changelog, GitHub release).",
|
|
1420
1777
|
"complexTypes": [],
|
|
1421
|
-
"type": "string |
|
|
1778
|
+
"type": "string | undefined"
|
|
1422
1779
|
},
|
|
1423
1780
|
{
|
|
1424
|
-
"name": "
|
|
1425
|
-
"tags": [
|
|
1426
|
-
|
|
1781
|
+
"name": "comment",
|
|
1782
|
+
"tags": [
|
|
1783
|
+
{
|
|
1784
|
+
"text": "7.35.0",
|
|
1785
|
+
"name": "since"
|
|
1786
|
+
}
|
|
1787
|
+
],
|
|
1788
|
+
"docs": "Optional comment or description for this bundle version.",
|
|
1427
1789
|
"complexTypes": [],
|
|
1428
|
-
"type": "string |
|
|
1790
|
+
"type": "string | undefined"
|
|
1429
1791
|
}
|
|
1430
1792
|
]
|
|
1431
1793
|
},
|
|
@@ -1577,6 +1939,86 @@
|
|
|
1577
1939
|
}
|
|
1578
1940
|
]
|
|
1579
1941
|
},
|
|
1942
|
+
{
|
|
1943
|
+
"name": "ListChannelsResult",
|
|
1944
|
+
"slug": "listchannelsresult",
|
|
1945
|
+
"docs": "",
|
|
1946
|
+
"tags": [],
|
|
1947
|
+
"methods": [],
|
|
1948
|
+
"properties": [
|
|
1949
|
+
{
|
|
1950
|
+
"name": "channels",
|
|
1951
|
+
"tags": [
|
|
1952
|
+
{
|
|
1953
|
+
"text": "7.5.0",
|
|
1954
|
+
"name": "since"
|
|
1955
|
+
}
|
|
1956
|
+
],
|
|
1957
|
+
"docs": "List of available channels",
|
|
1958
|
+
"complexTypes": [
|
|
1959
|
+
"ChannelInfo"
|
|
1960
|
+
],
|
|
1961
|
+
"type": "ChannelInfo[]"
|
|
1962
|
+
}
|
|
1963
|
+
]
|
|
1964
|
+
},
|
|
1965
|
+
{
|
|
1966
|
+
"name": "ChannelInfo",
|
|
1967
|
+
"slug": "channelinfo",
|
|
1968
|
+
"docs": "",
|
|
1969
|
+
"tags": [],
|
|
1970
|
+
"methods": [],
|
|
1971
|
+
"properties": [
|
|
1972
|
+
{
|
|
1973
|
+
"name": "id",
|
|
1974
|
+
"tags": [
|
|
1975
|
+
{
|
|
1976
|
+
"text": "7.5.0",
|
|
1977
|
+
"name": "since"
|
|
1978
|
+
}
|
|
1979
|
+
],
|
|
1980
|
+
"docs": "The channel ID",
|
|
1981
|
+
"complexTypes": [],
|
|
1982
|
+
"type": "string"
|
|
1983
|
+
},
|
|
1984
|
+
{
|
|
1985
|
+
"name": "name",
|
|
1986
|
+
"tags": [
|
|
1987
|
+
{
|
|
1988
|
+
"text": "7.5.0",
|
|
1989
|
+
"name": "since"
|
|
1990
|
+
}
|
|
1991
|
+
],
|
|
1992
|
+
"docs": "The channel name",
|
|
1993
|
+
"complexTypes": [],
|
|
1994
|
+
"type": "string"
|
|
1995
|
+
},
|
|
1996
|
+
{
|
|
1997
|
+
"name": "public",
|
|
1998
|
+
"tags": [
|
|
1999
|
+
{
|
|
2000
|
+
"text": "7.5.0",
|
|
2001
|
+
"name": "since"
|
|
2002
|
+
}
|
|
2003
|
+
],
|
|
2004
|
+
"docs": "Whether this is a public channel",
|
|
2005
|
+
"complexTypes": [],
|
|
2006
|
+
"type": "boolean"
|
|
2007
|
+
},
|
|
2008
|
+
{
|
|
2009
|
+
"name": "allow_self_set",
|
|
2010
|
+
"tags": [
|
|
2011
|
+
{
|
|
2012
|
+
"text": "7.5.0",
|
|
2013
|
+
"name": "since"
|
|
2014
|
+
}
|
|
2015
|
+
],
|
|
2016
|
+
"docs": "Whether devices can self-assign to this channel",
|
|
2017
|
+
"complexTypes": [],
|
|
2018
|
+
"type": "boolean"
|
|
2019
|
+
}
|
|
2020
|
+
]
|
|
2021
|
+
},
|
|
1580
2022
|
{
|
|
1581
2023
|
"name": "SetCustomIdOptions",
|
|
1582
2024
|
"slug": "setcustomidoptions",
|
|
@@ -1587,7 +2029,7 @@
|
|
|
1587
2029
|
{
|
|
1588
2030
|
"name": "customId",
|
|
1589
2031
|
"tags": [],
|
|
1590
|
-
"docs": "",
|
|
2032
|
+
"docs": "Custom identifier to associate with the device. Use an empty string to clear any saved value.",
|
|
1591
2033
|
"complexTypes": [],
|
|
1592
2034
|
"type": "string"
|
|
1593
2035
|
}
|
|
@@ -1782,12 +2224,16 @@
|
|
|
1782
2224
|
{
|
|
1783
2225
|
"name": "version",
|
|
1784
2226
|
"tags": [
|
|
2227
|
+
{
|
|
2228
|
+
"text": "Deprecated alias for {@link BreakingAvailableEvent}. Receives the same payload.",
|
|
2229
|
+
"name": "deprecated"
|
|
2230
|
+
},
|
|
1785
2231
|
{
|
|
1786
2232
|
"text": "4.0.0",
|
|
1787
2233
|
"name": "since"
|
|
1788
2234
|
}
|
|
1789
2235
|
],
|
|
1790
|
-
"docs": "Emit when a
|
|
2236
|
+
"docs": "Emit when a breaking update is available.",
|
|
1791
2237
|
"complexTypes": [],
|
|
1792
2238
|
"type": "string"
|
|
1793
2239
|
}
|
|
@@ -1867,6 +2313,34 @@
|
|
|
1867
2313
|
}
|
|
1868
2314
|
]
|
|
1869
2315
|
},
|
|
2316
|
+
{
|
|
2317
|
+
"name": "ChannelPrivateEvent",
|
|
2318
|
+
"slug": "channelprivateevent",
|
|
2319
|
+
"docs": "",
|
|
2320
|
+
"tags": [],
|
|
2321
|
+
"methods": [],
|
|
2322
|
+
"properties": [
|
|
2323
|
+
{
|
|
2324
|
+
"name": "channel",
|
|
2325
|
+
"tags": [
|
|
2326
|
+
{
|
|
2327
|
+
"text": "7.34.0",
|
|
2328
|
+
"name": "since"
|
|
2329
|
+
}
|
|
2330
|
+
],
|
|
2331
|
+
"docs": "Emitted when attempting to set a channel that doesn't allow device self-assignment.",
|
|
2332
|
+
"complexTypes": [],
|
|
2333
|
+
"type": "string"
|
|
2334
|
+
},
|
|
2335
|
+
{
|
|
2336
|
+
"name": "message",
|
|
2337
|
+
"tags": [],
|
|
2338
|
+
"docs": "",
|
|
2339
|
+
"complexTypes": [],
|
|
2340
|
+
"type": "string"
|
|
2341
|
+
}
|
|
2342
|
+
]
|
|
2343
|
+
},
|
|
1870
2344
|
{
|
|
1871
2345
|
"name": "AutoUpdateAvailable",
|
|
1872
2346
|
"slug": "autoupdateavailable",
|
|
@@ -1882,6 +2356,70 @@
|
|
|
1882
2356
|
"type": "boolean"
|
|
1883
2357
|
}
|
|
1884
2358
|
]
|
|
2359
|
+
},
|
|
2360
|
+
{
|
|
2361
|
+
"name": "SetShakeMenuOptions",
|
|
2362
|
+
"slug": "setshakemenuoptions",
|
|
2363
|
+
"docs": "",
|
|
2364
|
+
"tags": [],
|
|
2365
|
+
"methods": [],
|
|
2366
|
+
"properties": [
|
|
2367
|
+
{
|
|
2368
|
+
"name": "enabled",
|
|
2369
|
+
"tags": [],
|
|
2370
|
+
"docs": "",
|
|
2371
|
+
"complexTypes": [],
|
|
2372
|
+
"type": "boolean"
|
|
2373
|
+
}
|
|
2374
|
+
]
|
|
2375
|
+
},
|
|
2376
|
+
{
|
|
2377
|
+
"name": "ShakeMenuEnabled",
|
|
2378
|
+
"slug": "shakemenuenabled",
|
|
2379
|
+
"docs": "",
|
|
2380
|
+
"tags": [],
|
|
2381
|
+
"methods": [],
|
|
2382
|
+
"properties": [
|
|
2383
|
+
{
|
|
2384
|
+
"name": "enabled",
|
|
2385
|
+
"tags": [],
|
|
2386
|
+
"docs": "",
|
|
2387
|
+
"complexTypes": [],
|
|
2388
|
+
"type": "boolean"
|
|
2389
|
+
}
|
|
2390
|
+
]
|
|
2391
|
+
},
|
|
2392
|
+
{
|
|
2393
|
+
"name": "GetAppIdRes",
|
|
2394
|
+
"slug": "getappidres",
|
|
2395
|
+
"docs": "",
|
|
2396
|
+
"tags": [],
|
|
2397
|
+
"methods": [],
|
|
2398
|
+
"properties": [
|
|
2399
|
+
{
|
|
2400
|
+
"name": "appId",
|
|
2401
|
+
"tags": [],
|
|
2402
|
+
"docs": "",
|
|
2403
|
+
"complexTypes": [],
|
|
2404
|
+
"type": "string"
|
|
2405
|
+
}
|
|
2406
|
+
]
|
|
2407
|
+
},
|
|
2408
|
+
{
|
|
2409
|
+
"name": "SetAppIdOptions",
|
|
2410
|
+
"slug": "setappidoptions",
|
|
2411
|
+
"docs": "",
|
|
2412
|
+
"tags": [],
|
|
2413
|
+
"methods": [],
|
|
2414
|
+
"properties": [
|
|
2415
|
+
{
|
|
2416
|
+
"name": "appId",
|
|
2417
|
+
"tags": [],
|
|
2418
|
+
"docs": "",
|
|
2419
|
+
"complexTypes": [],
|
|
2420
|
+
"type": "string"
|
|
2421
|
+
}
|
|
2422
|
+
]
|
|
1885
2423
|
}
|
|
1886
2424
|
],
|
|
1887
2425
|
"enums": [],
|
|
@@ -1889,7 +2427,7 @@
|
|
|
1889
2427
|
{
|
|
1890
2428
|
"name": "BundleStatus",
|
|
1891
2429
|
"slug": "bundlestatus",
|
|
1892
|
-
"docs": "",
|
|
2430
|
+
"docs": "pending: The bundle is pending to be **SET** as the next bundle.\ndownloading: The bundle is being downloaded.\nsuccess: The bundle has been downloaded and is ready to be **SET** as the next bundle.\nerror: The bundle has failed to download.",
|
|
1893
2431
|
"types": [
|
|
1894
2432
|
{
|
|
1895
2433
|
"text": "'success'",
|
|
@@ -1931,6 +2469,19 @@
|
|
|
1931
2469
|
"complexTypes": []
|
|
1932
2470
|
}
|
|
1933
2471
|
]
|
|
2472
|
+
},
|
|
2473
|
+
{
|
|
2474
|
+
"name": "BreakingAvailableEvent",
|
|
2475
|
+
"slug": "breakingavailableevent",
|
|
2476
|
+
"docs": "Payload emitted by {@link CapacitorUpdaterPlugin.addListener} with `breakingAvailable`.",
|
|
2477
|
+
"types": [
|
|
2478
|
+
{
|
|
2479
|
+
"text": "MajorAvailableEvent",
|
|
2480
|
+
"complexTypes": [
|
|
2481
|
+
"MajorAvailableEvent"
|
|
2482
|
+
]
|
|
2483
|
+
}
|
|
2484
|
+
]
|
|
1934
2485
|
}
|
|
1935
2486
|
],
|
|
1936
2487
|
"pluginConfigs": [
|
|
@@ -1966,7 +2517,7 @@
|
|
|
1966
2517
|
"name": "example"
|
|
1967
2518
|
}
|
|
1968
2519
|
],
|
|
1969
|
-
"docs": "Configure the number of
|
|
2520
|
+
"docs": "Configure the number of seconds the native plugin should wait before considering API timeout.\n\nOnly available for Android and iOS.",
|
|
1970
2521
|
"complexTypes": [],
|
|
1971
2522
|
"type": "number | undefined"
|
|
1972
2523
|
},
|
|
@@ -2030,7 +2581,7 @@
|
|
|
2030
2581
|
"name": "example"
|
|
2031
2582
|
}
|
|
2032
2583
|
],
|
|
2033
|
-
"docs": "Automatically delete previous downloaded bundles when a newer native app bundle is installed to the device.\
|
|
2584
|
+
"docs": "Automatically delete previous downloaded bundles when a newer native app bundle is installed to the device.\nSetting this to false can broke the auto update flow if the user download from the store a native app bundle that is older than the current downloaded bundle. Upload will be prevented by channel setting downgrade_under_native.\nOnly available for Android and iOS.",
|
|
2034
2585
|
"complexTypes": [],
|
|
2035
2586
|
"type": "boolean | undefined"
|
|
2036
2587
|
},
|
|
@@ -2118,7 +2669,7 @@
|
|
|
2118
2669
|
"name": "directUpdate",
|
|
2119
2670
|
"tags": [
|
|
2120
2671
|
{
|
|
2121
|
-
"text": "
|
|
2672
|
+
"text": "false",
|
|
2122
2673
|
"name": "default"
|
|
2123
2674
|
},
|
|
2124
2675
|
{
|
|
@@ -2126,16 +2677,72 @@
|
|
|
2126
2677
|
"name": "since"
|
|
2127
2678
|
}
|
|
2128
2679
|
],
|
|
2129
|
-
"docs": "
|
|
2680
|
+
"docs": "Configure when the plugin should direct install updates. Only for autoUpdate mode.\nWorks well for apps less than 10MB and with uploads done using --partial flag.\nZip or apps more than 10MB will be relatively slow for users to update.\n- false: Never do direct updates (use default behavior: download at start, set when backgrounded)\n- atInstall: Direct update only when app is installed, updated from store, otherwise act as directUpdate = false\n- onLaunch: Direct update only on app installed, updated from store or after app kill, otherwise act as directUpdate = false\n- always: Direct update in all previous cases (app installed, updated from store, after app kill or app resume), never act as directUpdate = false\n- true: (deprecated) Same as \"always\" for backward compatibility\n\nOnly available for Android and iOS.",
|
|
2681
|
+
"complexTypes": [],
|
|
2682
|
+
"type": "boolean | 'always' | 'atInstall' | 'onLaunch' | undefined"
|
|
2683
|
+
},
|
|
2684
|
+
{
|
|
2685
|
+
"name": "autoSplashscreen",
|
|
2686
|
+
"tags": [
|
|
2687
|
+
{
|
|
2688
|
+
"text": "false",
|
|
2689
|
+
"name": "default"
|
|
2690
|
+
},
|
|
2691
|
+
{
|
|
2692
|
+
"text": "7.6.0",
|
|
2693
|
+
"name": "since"
|
|
2694
|
+
}
|
|
2695
|
+
],
|
|
2696
|
+
"docs": "Automatically handle splashscreen hiding when using directUpdate. When enabled, the plugin will automatically hide the splashscreen after updates are applied or when no update is needed.\nThis removes the need to manually listen for appReady events and call SplashScreen.hide().\nOnly works when directUpdate is set to \"atInstall\", \"always\", \"onLaunch\", or true.\nRequires the @capacitor/splash-screen plugin to be installed and configured with launchAutoHide: false.\nRequires autoUpdate and directUpdate to be enabled.\n\nOnly available for Android and iOS.",
|
|
2130
2697
|
"complexTypes": [],
|
|
2131
2698
|
"type": "boolean | undefined"
|
|
2132
2699
|
},
|
|
2700
|
+
{
|
|
2701
|
+
"name": "autoSplashscreenLoader",
|
|
2702
|
+
"tags": [
|
|
2703
|
+
{
|
|
2704
|
+
"text": "false",
|
|
2705
|
+
"name": "default"
|
|
2706
|
+
},
|
|
2707
|
+
{
|
|
2708
|
+
"text": "7.19.0",
|
|
2709
|
+
"name": "since"
|
|
2710
|
+
}
|
|
2711
|
+
],
|
|
2712
|
+
"docs": "Display a native loading indicator on top of the splashscreen while automatic direct updates are running.\nOnly takes effect when {@link autoSplashscreen} is enabled.\nRequires the @capacitor/splash-screen plugin to be installed and configured with launchAutoHide: false.\n\nOnly available for Android and iOS.",
|
|
2713
|
+
"complexTypes": [],
|
|
2714
|
+
"type": "boolean | undefined"
|
|
2715
|
+
},
|
|
2716
|
+
{
|
|
2717
|
+
"name": "autoSplashscreenTimeout",
|
|
2718
|
+
"tags": [
|
|
2719
|
+
{
|
|
2720
|
+
"text": "10000 // (10 seconds)",
|
|
2721
|
+
"name": "default"
|
|
2722
|
+
},
|
|
2723
|
+
{
|
|
2724
|
+
"text": "7.19.0",
|
|
2725
|
+
"name": "since"
|
|
2726
|
+
}
|
|
2727
|
+
],
|
|
2728
|
+
"docs": "Automatically hide the splashscreen after the specified number of milliseconds when using automatic direct updates.\nIf the timeout elapses, the update continues to download in the background while the splashscreen is dismissed.\nSet to `0` (zero) to disable the timeout.\nWhen the timeout fires, the direct update flow is skipped and the downloaded bundle is installed on the next background/launch.\nRequires {@link autoSplashscreen} to be enabled.\n\nOnly available for Android and iOS.",
|
|
2729
|
+
"complexTypes": [],
|
|
2730
|
+
"type": "number | undefined"
|
|
2731
|
+
},
|
|
2133
2732
|
{
|
|
2134
2733
|
"name": "periodCheckDelay",
|
|
2135
2734
|
"tags": [
|
|
2136
2735
|
{
|
|
2137
|
-
"text": "
|
|
2736
|
+
"text": "0 (disabled)",
|
|
2138
2737
|
"name": "default"
|
|
2738
|
+
},
|
|
2739
|
+
{
|
|
2740
|
+
"text": "3600 (1 hour)",
|
|
2741
|
+
"name": "example"
|
|
2742
|
+
},
|
|
2743
|
+
{
|
|
2744
|
+
"text": "86400 (24 hours)",
|
|
2745
|
+
"name": "example"
|
|
2139
2746
|
}
|
|
2140
2747
|
],
|
|
2141
2748
|
"docs": "Configure the delay period for period update check. the unit is in seconds.\n\nOnly available for Android and iOS.\nCannot be less than 600 seconds (10 minutes).",
|
|
@@ -2270,6 +2877,86 @@
|
|
|
2270
2877
|
"complexTypes": [],
|
|
2271
2878
|
"type": "boolean | undefined"
|
|
2272
2879
|
},
|
|
2880
|
+
{
|
|
2881
|
+
"name": "allowModifyAppId",
|
|
2882
|
+
"tags": [
|
|
2883
|
+
{
|
|
2884
|
+
"text": "false",
|
|
2885
|
+
"name": "default"
|
|
2886
|
+
},
|
|
2887
|
+
{
|
|
2888
|
+
"text": "7.14.0",
|
|
2889
|
+
"name": "since"
|
|
2890
|
+
}
|
|
2891
|
+
],
|
|
2892
|
+
"docs": "Allow the plugin to modify the appId dynamically from the JavaScript side.",
|
|
2893
|
+
"complexTypes": [],
|
|
2894
|
+
"type": "boolean | undefined"
|
|
2895
|
+
},
|
|
2896
|
+
{
|
|
2897
|
+
"name": "allowManualBundleError",
|
|
2898
|
+
"tags": [
|
|
2899
|
+
{
|
|
2900
|
+
"text": "false",
|
|
2901
|
+
"name": "default"
|
|
2902
|
+
},
|
|
2903
|
+
{
|
|
2904
|
+
"text": "7.20.0",
|
|
2905
|
+
"name": "since"
|
|
2906
|
+
}
|
|
2907
|
+
],
|
|
2908
|
+
"docs": "Allow marking bundles as errored from JavaScript while using manual update flows.\nWhen enabled, {@link CapacitorUpdaterPlugin.setBundleError} can change a bundle status to `error`.",
|
|
2909
|
+
"complexTypes": [],
|
|
2910
|
+
"type": "boolean | undefined"
|
|
2911
|
+
},
|
|
2912
|
+
{
|
|
2913
|
+
"name": "persistCustomId",
|
|
2914
|
+
"tags": [
|
|
2915
|
+
{
|
|
2916
|
+
"text": "false (will be true by default in a future major release v8.x.x)",
|
|
2917
|
+
"name": "default"
|
|
2918
|
+
},
|
|
2919
|
+
{
|
|
2920
|
+
"text": "7.17.3",
|
|
2921
|
+
"name": "since"
|
|
2922
|
+
}
|
|
2923
|
+
],
|
|
2924
|
+
"docs": "Persist the customId set through {@link CapacitorUpdaterPlugin.setCustomId} across app restarts.\n\nOnly available for Android and iOS.",
|
|
2925
|
+
"complexTypes": [],
|
|
2926
|
+
"type": "boolean | undefined"
|
|
2927
|
+
},
|
|
2928
|
+
{
|
|
2929
|
+
"name": "persistModifyUrl",
|
|
2930
|
+
"tags": [
|
|
2931
|
+
{
|
|
2932
|
+
"text": "false",
|
|
2933
|
+
"name": "default"
|
|
2934
|
+
},
|
|
2935
|
+
{
|
|
2936
|
+
"text": "7.20.0",
|
|
2937
|
+
"name": "since"
|
|
2938
|
+
}
|
|
2939
|
+
],
|
|
2940
|
+
"docs": "Persist the updateUrl, statsUrl and channelUrl set through {@link CapacitorUpdaterPlugin.setUpdateUrl},\n{@link CapacitorUpdaterPlugin.setStatsUrl} and {@link CapacitorUpdaterPlugin.setChannelUrl} across app restarts.\n\nOnly available for Android and iOS.",
|
|
2941
|
+
"complexTypes": [],
|
|
2942
|
+
"type": "boolean | undefined"
|
|
2943
|
+
},
|
|
2944
|
+
{
|
|
2945
|
+
"name": "allowSetDefaultChannel",
|
|
2946
|
+
"tags": [
|
|
2947
|
+
{
|
|
2948
|
+
"text": "true",
|
|
2949
|
+
"name": "default"
|
|
2950
|
+
},
|
|
2951
|
+
{
|
|
2952
|
+
"text": "7.34.0",
|
|
2953
|
+
"name": "since"
|
|
2954
|
+
}
|
|
2955
|
+
],
|
|
2956
|
+
"docs": "Allow or disallow the {@link CapacitorUpdaterPlugin.setChannel} method to modify the defaultChannel.\nWhen set to `false`, calling `setChannel()` will return an error with code `disabled_by_config`.",
|
|
2957
|
+
"complexTypes": [],
|
|
2958
|
+
"type": "boolean | undefined"
|
|
2959
|
+
},
|
|
2273
2960
|
{
|
|
2274
2961
|
"name": "defaultChannel",
|
|
2275
2962
|
"tags": [
|
|
@@ -2282,7 +2969,7 @@
|
|
|
2282
2969
|
"name": "since"
|
|
2283
2970
|
}
|
|
2284
2971
|
],
|
|
2285
|
-
"docs": "Set the default channel for the app in the config.",
|
|
2972
|
+
"docs": "Set the default channel for the app in the config. Case sensitive.\nThis will setting will override the default channel set in the cloud, but will still respect overrides made in the cloud.\nThis requires the channel to allow devices to self dissociate/associate in the channel settings. https://capgo.app/docs/public-api/channels/#channel-configuration-options",
|
|
2286
2973
|
"complexTypes": [],
|
|
2287
2974
|
"type": "string | undefined"
|
|
2288
2975
|
},
|
|
@@ -2317,6 +3004,38 @@
|
|
|
2317
3004
|
"docs": "Configure the plugin to keep the URL path after a reload.\nWARNING: When a reload is triggered, 'window.history' will be cleared.",
|
|
2318
3005
|
"complexTypes": [],
|
|
2319
3006
|
"type": "boolean | undefined"
|
|
3007
|
+
},
|
|
3008
|
+
{
|
|
3009
|
+
"name": "disableJSLogging",
|
|
3010
|
+
"tags": [
|
|
3011
|
+
{
|
|
3012
|
+
"text": "false",
|
|
3013
|
+
"name": "default"
|
|
3014
|
+
},
|
|
3015
|
+
{
|
|
3016
|
+
"text": "7.3.0",
|
|
3017
|
+
"name": "since"
|
|
3018
|
+
}
|
|
3019
|
+
],
|
|
3020
|
+
"docs": "Disable the JavaScript logging of the plugin. if true, the plugin will not log to the JavaScript console. only the native log will be done",
|
|
3021
|
+
"complexTypes": [],
|
|
3022
|
+
"type": "boolean | undefined"
|
|
3023
|
+
},
|
|
3024
|
+
{
|
|
3025
|
+
"name": "shakeMenu",
|
|
3026
|
+
"tags": [
|
|
3027
|
+
{
|
|
3028
|
+
"text": "false",
|
|
3029
|
+
"name": "default"
|
|
3030
|
+
},
|
|
3031
|
+
{
|
|
3032
|
+
"text": "7.5.0",
|
|
3033
|
+
"name": "since"
|
|
3034
|
+
}
|
|
3035
|
+
],
|
|
3036
|
+
"docs": "Enable shake gesture to show update menu for debugging/testing purposes",
|
|
3037
|
+
"complexTypes": [],
|
|
3038
|
+
"type": "boolean | undefined"
|
|
2320
3039
|
}
|
|
2321
3040
|
],
|
|
2322
3041
|
"docs": "CapacitorUpdater can be configured with these options:"
|