@capgo/capacitor-updater 7.27.7 → 7.27.9

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/dist/docs.json CHANGED
@@ -13,14 +13,10 @@
13
13
  "tags": [
14
14
  {
15
15
  "name": "returns",
16
- "text": "an Promise resolved directly"
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 Capacitor Updater that the current bundle is working (a rollback will occur if this method is not called on every app launch)\nBy default this method should be called in the first 10 sec after app launch, otherwise a rollback will occur.\nChange this behaviour with {@link appReadyTimeout}",
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": "contains the URL to use for checking for updates.",
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 contains the URL to use for checking for updates."
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 updateUrl for the app, this will be used to check for updates.",
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": "contains the URL to use for sending statistics.",
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 contains the URL to use for sending statistics."
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 statsUrl for the app, this will be used to send statistics. Passing an empty string will disable statistics gathering.",
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": "contains the URL to use for setting the channel.",
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 contains the URL to use for setting the channel."
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 channelUrl for the app, this will be used to set the channel.",
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({ url: `https://example.com/versions/${version}/dist.zip`, version });"
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 specified bundle."
152
+ "text": "The {@link BundleInfo} for the downloaded bundle."
150
153
  },
151
154
  {
152
- "name": "param",
153
- "text": "options The {@link DownloadOptions} for downloading a new bundle zip."
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, it should be a zip file, with files inside or with a unique id inside with all your files",
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 next Bundle to set on next app launch. {@link BundleInfo.id}",
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 next Bundle to set on next app launch. {@link BundleInfo.id}"
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 id."
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 used when the app is reloaded.",
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 are is no index.html file inside the bundle folder."
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 of a bundle to delete (note, this is the bundle id, NOT the version name)",
235
+ "docs": "A {@link BundleId} object containing the bundle ID to delete.",
232
236
  "type": "BundleId"
233
237
  }
234
238
  ],
@@ -236,18 +240,18 @@
236
240
  "tags": [
237
241
  {
238
242
  "name": "param",
239
- "text": "options A {@link BundleId} object containing the ID of a bundle to delete (note, this is the bundle id, NOT the version name)"
243
+ "text": "options A {@link BundleId} object containing the bundle ID to delete."
240
244
  },
241
245
  {
242
246
  "name": "returns",
243
- "text": "When the bundle is deleted"
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": "Deletes the specified bundle from the native app storage. Use with {@link list} to get the stored Bundle IDs.",
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
  ],
@@ -259,7 +263,7 @@
259
263
  "parameters": [
260
264
  {
261
265
  "name": "options",
262
- "docs": "A {@link BundleId} object containing the bundle id to mark as errored.",
266
+ "docs": "A {@link BundleId} object containing the bundle ID to mark as errored.",
263
267
  "type": "BundleId"
264
268
  }
265
269
  ],
@@ -267,22 +271,22 @@
267
271
  "tags": [
268
272
  {
269
273
  "name": "param",
270
- "text": "options A {@link BundleId} object containing the bundle id to mark as errored."
274
+ "text": "options A {@link BundleId} object containing the bundle ID to mark as errored."
271
275
  },
272
276
  {
273
277
  "name": "returns",
274
- "text": "The updated {@link BundleInfo} for the bundle."
278
+ "text": "The updated {@link BundleInfo} with status set to `error`."
275
279
  },
276
280
  {
277
281
  "name": "throws",
278
- "text": "{Error} When the bundle does not exist or the feature is disabled."
282
+ "text": "{Error} When the bundle does not exist or `allowManualBundleError` is false."
279
283
  },
280
284
  {
281
285
  "name": "since",
282
286
  "text": "7.20.0"
283
287
  }
284
288
  ],
285
- "docs": "Mark an installed bundle as errored. Only available when {@link PluginsConfig.CapacitorUpdater.allowManualBundleError} is true.",
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.",
286
290
  "complexTypes": [
287
291
  "BundleInfo",
288
292
  "BundleId"
@@ -295,26 +299,26 @@
295
299
  "parameters": [
296
300
  {
297
301
  "name": "options",
298
- "docs": "The {@link ListOptions} for listing bundles",
302
+ "docs": "The {@link ListOptions} for customizing the bundle list output.",
299
303
  "type": "ListOptions | undefined"
300
304
  }
301
305
  ],
302
306
  "returns": "Promise<BundleListResult>",
303
307
  "tags": [
304
308
  {
305
- "name": "returns",
306
- "text": "A Promise containing the {@link BundleListResult.bundles}"
309
+ "name": "param",
310
+ "text": "options The {@link ListOptions} for customizing the bundle list output."
307
311
  },
308
312
  {
309
- "name": "param",
310
- "text": "options The {@link ListOptions} for listing bundles"
313
+ "name": "returns",
314
+ "text": "A promise containing the array of {@link BundleInfo} objects."
311
315
  },
312
316
  {
313
317
  "name": "throws",
314
- "text": "{Error}"
318
+ "text": "{Error} If the operation fails."
315
319
  }
316
320
  ],
317
- "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",
318
322
  "complexTypes": [
319
323
  "BundleListResult",
320
324
  "ListOptions"
@@ -327,7 +331,7 @@
327
331
  "parameters": [
328
332
  {
329
333
  "name": "options",
330
- "docs": "Containing {@link ResetOptions.toLastSuccessful}, `true` resets to the builtin bundle and `false` will reset to the last successfully loaded bundle.",
334
+ "docs": "",
331
335
  "type": "ResetOptions | undefined"
332
336
  }
333
337
  ],
@@ -335,17 +339,22 @@
335
339
  "tags": [
336
340
  {
337
341
  "name": "param",
338
- "text": "options Containing {@link ResetOptions.toLastSuccessful}, `true` resets to the builtin bundle and `false` will reset to the last successfully loaded bundle."
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."
339
347
  },
340
348
  {
341
- "name": "returns"
349
+ "name": "returns",
350
+ "text": "A promise that may never resolve because the app will be reloaded."
342
351
  },
343
352
  {
344
353
  "name": "throws",
345
- "text": "{Error}"
354
+ "text": "{Error} If the reset operation fails."
346
355
  }
347
356
  ],
348
- "docs": "Reset the app to the `builtin` bundle (the one sent to Apple App Store / Google Play Store ) or the last successfully loaded bundle.",
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",
349
358
  "complexTypes": [
350
359
  "ResetOptions"
351
360
  ],
@@ -359,14 +368,14 @@
359
368
  "tags": [
360
369
  {
361
370
  "name": "returns",
362
- "text": "A Promise evaluating to the {@link CurrentBundleResult}"
371
+ "text": "A promise with the current bundle and native version info."
363
372
  },
364
373
  {
365
374
  "name": "throws",
366
- "text": "{Error}"
375
+ "text": "{Error} If the operation fails."
367
376
  }
368
377
  ],
369
- "docs": "Get the current bundle, if none are set it returns `builtin`. currentNative is the original bundle installed on the device",
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",
370
379
  "complexTypes": [
371
380
  "CurrentBundleResult"
372
381
  ],
@@ -380,14 +389,14 @@
380
389
  "tags": [
381
390
  {
382
391
  "name": "returns",
383
- "text": "A Promise which is resolved when the view is reloaded"
392
+ "text": "A promise that may never resolve because the app will be reloaded."
384
393
  },
385
394
  {
386
395
  "name": "throws",
387
- "text": "{Error}"
396
+ "text": "{Error} If the reload operation fails."
388
397
  }
389
398
  ],
390
- "docs": "Reload the view",
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.",
391
400
  "complexTypes": [],
392
401
  "slug": "reload"
393
402
  },
@@ -397,7 +406,7 @@
397
406
  "parameters": [
398
407
  {
399
408
  "name": "options",
400
- "docs": "Containing the {@link MultiDelayConditions} array of conditions to set",
409
+ "docs": "Contains the {@link MultiDelayConditions} array of conditions.",
401
410
  "type": "MultiDelayConditions"
402
411
  }
403
412
  ],
@@ -405,33 +414,34 @@
405
414
  "tags": [
406
415
  {
407
416
  "name": "example",
408
- "text": "// Delay the update after the user kills the app or after a background of 300000 ms (5 minutes)\nawait CapacitorUpdater.setMultiDelay({ delayConditions: [{ kind: 'kill' }, { kind: 'background', value: '300000' }] })"
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});"
409
418
  },
410
419
  {
411
420
  "name": "example",
412
- "text": "// Delay the update after the specific iso8601 date is expired\nawait CapacitorUpdater.setMultiDelay({ delayConditions: [{ kind: 'date', value: '2022-09-14T06:14:11.920Z' }] })"
421
+ "text": "// Update after a specific date\nawait CapacitorUpdater.setMultiDelay({\n delayConditions: [{ kind: 'date', value: '2025-12-31T23:59:59Z' }]\n});"
413
422
  },
414
423
  {
415
424
  "name": "example",
416
- "text": "// Delay the update after the first background (default behaviour without setting delay)\nawait CapacitorUpdater.setMultiDelay({ delayConditions: [{ kind: 'background' }] })"
425
+ "text": "// Default behavior: update on next background\nawait CapacitorUpdater.setMultiDelay({\n delayConditions: [{ kind: 'background' }]\n});"
417
426
  },
418
427
  {
419
428
  "name": "param",
420
- "text": "options Containing the {@link MultiDelayConditions} array of conditions to set"
429
+ "text": "options Contains the {@link MultiDelayConditions} array of conditions."
421
430
  },
422
431
  {
423
- "name": "returns"
432
+ "name": "returns",
433
+ "text": "Resolves when the delay conditions are set."
424
434
  },
425
435
  {
426
436
  "name": "throws",
427
- "text": "{Error}"
437
+ "text": "{Error} If the operation fails or conditions are invalid."
428
438
  },
429
439
  {
430
440
  "name": "since",
431
441
  "text": "4.3.0"
432
442
  }
433
443
  ],
434
- "docs": "Sets a {@link DelayCondition} array containing conditions that the Plugin will use to delay the update.\nAfter all conditions are met, the update process will run start again as usual, so update will be installed after a backgrounding or killing the app.\nFor the `date` kind, the value should be an iso8601 date string.\nFor the `background` kind, the value should be a number in milliseconds.\nFor the `nativeVersion` kind, the value should be the version number.\nFor the `kill` kind, the value is not used.\nThe function has inconsistent behavior the option kill do trigger the update after the first kill and not after the next background like other options. This will be fixed in a future major release.",
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\"`)",
435
445
  "complexTypes": [
436
446
  "MultiDelayConditions"
437
447
  ],
@@ -444,18 +454,19 @@
444
454
  "returns": "Promise<void>",
445
455
  "tags": [
446
456
  {
447
- "name": "returns"
457
+ "name": "returns",
458
+ "text": "Resolves when the delay conditions are cleared."
448
459
  },
449
460
  {
450
461
  "name": "throws",
451
- "text": "{Error}"
462
+ "text": "{Error} If the operation fails."
452
463
  },
453
464
  {
454
465
  "name": "since",
455
466
  "text": "4.0.0"
456
467
  }
457
468
  ],
458
- "docs": "Cancels a {@link DelayCondition} to process an update immediately.",
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",
459
470
  "complexTypes": [],
460
471
  "slug": "canceldelay"
461
472
  },
@@ -465,26 +476,30 @@
465
476
  "parameters": [
466
477
  {
467
478
  "name": "options",
468
- "docs": "",
479
+ "docs": "Optional {@link GetLatestOptions} to specify which channel to check.",
469
480
  "type": "GetLatestOptions | undefined"
470
481
  }
471
482
  ],
472
483
  "returns": "Promise<LatestVersion>",
473
484
  "tags": [
485
+ {
486
+ "name": "param",
487
+ "text": "options Optional {@link GetLatestOptions} to specify which channel to check."
488
+ },
474
489
  {
475
490
  "name": "returns",
476
- "text": "A Promise resolved when url is loaded"
491
+ "text": "Information about the latest available bundle version."
477
492
  },
478
493
  {
479
494
  "name": "throws",
480
- "text": "{Error}"
495
+ "text": "{Error} If the request fails or the server returns an error."
481
496
  },
482
497
  {
483
498
  "name": "since",
484
499
  "text": "4.0.0"
485
500
  }
486
501
  ],
487
- "docs": "Get Latest bundle available from update Url",
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}",
488
503
  "complexTypes": [
489
504
  "LatestVersion",
490
505
  "GetLatestOptions"
@@ -497,7 +512,7 @@
497
512
  "parameters": [
498
513
  {
499
514
  "name": "options",
500
- "docs": "Is the {@link SetChannelOptions} channel to set",
515
+ "docs": "The {@link SetChannelOptions} containing the channel name and optional auto-update trigger.",
501
516
  "type": "SetChannelOptions"
502
517
  }
503
518
  ],
@@ -505,22 +520,22 @@
505
520
  "tags": [
506
521
  {
507
522
  "name": "param",
508
- "text": "options Is the {@link SetChannelOptions} channel to set"
523
+ "text": "options The {@link SetChannelOptions} containing the channel name and optional auto-update trigger."
509
524
  },
510
525
  {
511
526
  "name": "returns",
512
- "text": "A Promise which is resolved when the new channel is set"
527
+ "text": "Channel operation result with status and optional error/message."
513
528
  },
514
529
  {
515
530
  "name": "throws",
516
- "text": "{Error}"
531
+ "text": "{Error} If the channel doesn't exist or doesn't allow self-assignment."
517
532
  },
518
533
  {
519
534
  "name": "since",
520
535
  "text": "4.7.0"
521
536
  }
522
537
  ],
523
- "docs": "Sets the channel for this device. The channel has to allow for self assignment for this to work.\nDo not use this method to set the channel at boot.\nThis method is to set the channel after the app is ready, and user interacted.\nIf you want to set the channel at boot, use the {@link PluginsConfig} to set the default channel.\nThis methods send to Capgo backend a request to link the device ID to the channel. Capgo can accept or refuse depending of the setting of your channel.",
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\nThis sends a request to the Capgo backend linking your device ID to the specified channel.",
524
539
  "complexTypes": [
525
540
  "ChannelRes",
526
541
  "SetChannelOptions"
@@ -539,20 +554,28 @@
539
554
  ],
540
555
  "returns": "Promise<void>",
541
556
  "tags": [
557
+ {
558
+ "name": "param",
559
+ "text": "options"
560
+ },
561
+ {
562
+ "name": "link",
563
+ "text": "UnsetChannelOptions} containing optional auto-update trigger."
564
+ },
542
565
  {
543
566
  "name": "returns",
544
- "text": "A Promise resolved when channel is set"
567
+ "text": "Resolves when the channel is successfully unset."
545
568
  },
546
569
  {
547
570
  "name": "throws",
548
- "text": "{Error}"
571
+ "text": "{Error} If the operation fails."
549
572
  },
550
573
  {
551
574
  "name": "since",
552
575
  "text": "4.7.0"
553
576
  }
554
577
  ],
555
- "docs": "Unset the channel for this device. The device will then return to the default channel",
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",
556
579
  "complexTypes": [
557
580
  "UnsetChannelOptions"
558
581
  ],
@@ -566,18 +589,18 @@
566
589
  "tags": [
567
590
  {
568
591
  "name": "returns",
569
- "text": "A Promise that resolves with the channel info"
592
+ "text": "The current channel information."
570
593
  },
571
594
  {
572
595
  "name": "throws",
573
- "text": "{Error}"
596
+ "text": "{Error} If the operation fails."
574
597
  },
575
598
  {
576
599
  "name": "since",
577
600
  "text": "4.8.0"
578
601
  }
579
602
  ],
580
- "docs": "Get the channel for this device",
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}",
581
604
  "complexTypes": [
582
605
  "GetChannelRes"
583
606
  ],
@@ -591,18 +614,18 @@
591
614
  "tags": [
592
615
  {
593
616
  "name": "returns",
594
- "text": "A Promise that resolves with the available channels"
617
+ "text": "List of channels the device can self-assign to."
595
618
  },
596
619
  {
597
620
  "name": "throws",
598
- "text": "{Error}"
621
+ "text": "{Error} If the operation fails or the request to the backend fails."
599
622
  },
600
623
  {
601
624
  "name": "since",
602
625
  "text": "7.5.0"
603
626
  }
604
627
  ],
605
- "docs": "List all channels available for this device that allow self-assignment",
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",
606
629
  "complexTypes": [
607
630
  "ListChannelsResult"
608
631
  ],
@@ -614,7 +637,7 @@
614
637
  "parameters": [
615
638
  {
616
639
  "name": "options",
617
- "docs": "is the {@link SetCustomIdOptions} customId to set",
640
+ "docs": "The {@link SetCustomIdOptions} containing the custom identifier string.",
618
641
  "type": "SetCustomIdOptions"
619
642
  }
620
643
  ],
@@ -622,22 +645,22 @@
622
645
  "tags": [
623
646
  {
624
647
  "name": "param",
625
- "text": "options is the {@link SetCustomIdOptions} customId to set"
648
+ "text": "options The {@link SetCustomIdOptions} containing the custom identifier string."
626
649
  },
627
650
  {
628
651
  "name": "returns",
629
- "text": "an Promise resolved instantly"
652
+ "text": "Resolves immediately (synchronous operation)."
630
653
  },
631
654
  {
632
655
  "name": "throws",
633
- "text": "{Error}"
656
+ "text": "{Error} If the operation fails."
634
657
  },
635
658
  {
636
659
  "name": "since",
637
660
  "text": "4.9.0"
638
661
  }
639
662
  ],
640
- "docs": "Set a custom ID for this device\n\nWhen {@link PluginsConfig.CapacitorUpdater.persistCustomId} is true, the value will be stored natively and restored on the next app launch.\nPass an empty string to remove any previously stored customId.",
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",
641
664
  "complexTypes": [
642
665
  "SetCustomIdOptions"
643
666
  ],
@@ -651,14 +674,14 @@
651
674
  "tags": [
652
675
  {
653
676
  "name": "returns",
654
- "text": "A Promise with version for this device"
677
+ "text": "The builtin bundle version string."
655
678
  },
656
679
  {
657
680
  "name": "since",
658
681
  "text": "5.2.0"
659
682
  }
660
683
  ],
661
- "docs": "Get the native app version or the builtin version if set in config",
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",
662
685
  "complexTypes": [
663
686
  "BuiltinVersion"
664
687
  ],
@@ -672,14 +695,14 @@
672
695
  "tags": [
673
696
  {
674
697
  "name": "returns",
675
- "text": "A Promise with id for this device"
698
+ "text": "The unique device identifier string."
676
699
  },
677
700
  {
678
701
  "name": "throws",
679
- "text": "{Error}"
702
+ "text": "{Error} If the operation fails."
680
703
  }
681
704
  ],
682
- "docs": "Get unique ID used to identify device (sent to auto update server).\n\nThis ID is privacy-friendly and follows Apple and Google best practices:\n- Generated as a UUID and stored securely\n- Android: Uses Android Keystore (persists across reinstalls on API 23+)\n- iOS: Uses Keychain with kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly (persists across reinstalls)\n- Data stays on device (not synced to cloud on iOS)\n- Can be cleared by user via system settings (Android) or keychain access (iOS)\n\nThe device ID now persists between app reinstalls to maintain consistent device identity.",
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",
683
706
  "complexTypes": [
684
707
  "DeviceId"
685
708
  ],
@@ -693,14 +716,14 @@
693
716
  "tags": [
694
717
  {
695
718
  "name": "returns",
696
- "text": "A Promise with Plugin version"
719
+ "text": "The Capacitor Updater plugin version string."
697
720
  },
698
721
  {
699
722
  "name": "throws",
700
- "text": "{Error}"
723
+ "text": "{Error} If the operation fails."
701
724
  }
702
725
  ],
703
- "docs": "Get the native Capacitor Updater plugin version (sent to auto update server)",
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",
704
727
  "complexTypes": [
705
728
  "PluginVersion"
706
729
  ],
@@ -714,14 +737,14 @@
714
737
  "tags": [
715
738
  {
716
739
  "name": "returns",
717
- "text": "The status for auto update. Evaluates to `false` in manual mode."
740
+ "text": "`true` if auto-update is enabled, `false` if in manual mode."
718
741
  },
719
742
  {
720
743
  "name": "throws",
721
- "text": "{Error}"
744
+ "text": "{Error} If the operation fails."
722
745
  }
723
746
  ],
724
- "docs": "Get the state of auto update config.",
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",
725
748
  "complexTypes": [
726
749
  "AutoUpdateEnabled"
727
750
  ],
@@ -733,12 +756,16 @@
733
756
  "parameters": [],
734
757
  "returns": "Promise<void>",
735
758
  "tags": [
759
+ {
760
+ "name": "returns",
761
+ "text": "Resolves when all listeners are removed."
762
+ },
736
763
  {
737
764
  "name": "since",
738
765
  "text": "1.0.0"
739
766
  }
740
767
  ],
741
- "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.",
742
769
  "complexTypes": [],
743
770
  "slug": "removealllisteners"
744
771
  },
@@ -1043,14 +1070,14 @@
1043
1070
  "tags": [
1044
1071
  {
1045
1072
  "name": "returns",
1046
- "text": "The availability status for auto update. Evaluates to `false` when serverUrl is set."
1073
+ "text": "`false` when custom updateUrl is set, `true` otherwise."
1047
1074
  },
1048
1075
  {
1049
1076
  "name": "throws",
1050
- "text": "{Error}"
1077
+ "text": "{Error} If the operation fails."
1051
1078
  }
1052
1079
  ],
1053
- "docs": "Get if auto update is available (not disabled by serverUrl).",
1080
+ "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",
1054
1081
  "complexTypes": [
1055
1082
  "AutoUpdateAvailable"
1056
1083
  ],
@@ -1064,18 +1091,18 @@
1064
1091
  "tags": [
1065
1092
  {
1066
1093
  "name": "returns",
1067
- "text": "A Promise that resolves with the next bundle information or null"
1094
+ "text": "The pending bundle info, or `null` if none is queued."
1068
1095
  },
1069
1096
  {
1070
1097
  "name": "throws",
1071
- "text": "{Error}"
1098
+ "text": "{Error} If the operation fails."
1072
1099
  },
1073
1100
  {
1074
1101
  "name": "since",
1075
1102
  "text": "6.8.0"
1076
1103
  }
1077
1104
  ],
1078
- "docs": "Get the next bundle that will be used when the app reloads.\nReturns null if no next bundle is set.",
1105
+ "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",
1079
1106
  "complexTypes": [
1080
1107
  "BundleInfo"
1081
1108
  ],
@@ -1089,18 +1116,18 @@
1089
1116
  "tags": [
1090
1117
  {
1091
1118
  "name": "returns",
1092
- "text": "The last failed update or null when no failure has been recorded. Value is cleared after it is returned once."
1119
+ "text": "The failed update info (cleared after first retrieval), or `null`."
1093
1120
  },
1094
1121
  {
1095
1122
  "name": "throws",
1096
- "text": "{Error}"
1123
+ "text": "{Error} If the operation fails."
1097
1124
  },
1098
1125
  {
1099
1126
  "name": "since",
1100
1127
  "text": "7.22.0"
1101
1128
  }
1102
1129
  ],
1103
- "docs": "Get the most recent update that failed to install, if any. The stored value is cleared after it is retrieved once.",
1130
+ "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",
1104
1131
  "complexTypes": [
1105
1132
  "UpdateFailedEvent"
1106
1133
  ],
@@ -1112,7 +1139,7 @@
1112
1139
  "parameters": [
1113
1140
  {
1114
1141
  "name": "options",
1115
- "docs": "Contains enabled boolean to enable or disable shake menu",
1142
+ "docs": "",
1116
1143
  "type": "SetShakeMenuOptions"
1117
1144
  }
1118
1145
  ],
@@ -1120,21 +1147,26 @@
1120
1147
  "tags": [
1121
1148
  {
1122
1149
  "name": "param",
1123
- "text": "options Contains enabled boolean to enable or disable shake menu"
1150
+ "text": "options"
1151
+ },
1152
+ {
1153
+ "name": "link",
1154
+ "text": "SetShakeMenuOptions} with `enabled: true` to enable or `enabled: false` to disable."
1124
1155
  },
1125
1156
  {
1126
- "name": "returns"
1157
+ "name": "returns",
1158
+ "text": "Resolves when the setting is applied."
1127
1159
  },
1128
1160
  {
1129
1161
  "name": "throws",
1130
- "text": "{Error}"
1162
+ "text": "{Error} If the operation fails."
1131
1163
  },
1132
1164
  {
1133
1165
  "name": "since",
1134
1166
  "text": "7.5.0"
1135
1167
  }
1136
1168
  ],
1137
- "docs": "Enable or disable the shake menu for debugging/testing purposes",
1169
+ "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}.",
1138
1170
  "complexTypes": [
1139
1171
  "SetShakeMenuOptions"
1140
1172
  ],
@@ -1148,18 +1180,18 @@
1148
1180
  "tags": [
1149
1181
  {
1150
1182
  "name": "returns",
1151
- "text": "The current state of shake menu"
1183
+ "text": "Object with `enabled: true` or `enabled: false`."
1152
1184
  },
1153
1185
  {
1154
1186
  "name": "throws",
1155
- "text": "{Error}"
1187
+ "text": "{Error} If the operation fails."
1156
1188
  },
1157
1189
  {
1158
1190
  "name": "since",
1159
1191
  "text": "7.5.0"
1160
1192
  }
1161
1193
  ],
1162
- "docs": "Get the current state of the shake menu",
1194
+ "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",
1163
1195
  "complexTypes": [
1164
1196
  "ShakeMenuEnabled"
1165
1197
  ],
@@ -1173,18 +1205,18 @@
1173
1205
  "tags": [
1174
1206
  {
1175
1207
  "name": "returns",
1176
- "text": "The current App ID"
1208
+ "text": "Object containing the current `appId` string."
1177
1209
  },
1178
1210
  {
1179
1211
  "name": "throws",
1180
- "text": "{Error}"
1212
+ "text": "{Error} If the operation fails."
1181
1213
  },
1182
1214
  {
1183
1215
  "name": "since",
1184
1216
  "text": "7.14.0"
1185
1217
  }
1186
1218
  ],
1187
- "docs": "Get the configured App ID",
1219
+ "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}",
1188
1220
  "complexTypes": [
1189
1221
  "GetAppIdRes"
1190
1222
  ],
@@ -1196,7 +1228,7 @@
1196
1228
  "parameters": [
1197
1229
  {
1198
1230
  "name": "options",
1199
- "docs": "The new App ID to set",
1231
+ "docs": "",
1200
1232
  "type": "SetAppIdOptions"
1201
1233
  }
1202
1234
  ],
@@ -1204,21 +1236,26 @@
1204
1236
  "tags": [
1205
1237
  {
1206
1238
  "name": "param",
1207
- "text": "options The new App ID to set"
1239
+ "text": "options"
1208
1240
  },
1209
1241
  {
1210
- "name": "returns"
1242
+ "name": "link",
1243
+ "text": "SetAppIdOptions} containing the new App ID string."
1244
+ },
1245
+ {
1246
+ "name": "returns",
1247
+ "text": "Resolves when the App ID is successfully changed."
1211
1248
  },
1212
1249
  {
1213
1250
  "name": "throws",
1214
- "text": "{Error} If allowModifyAppId is false or if the operation fails"
1251
+ "text": "{Error} If `allowModifyAppId` is false or the operation fails."
1215
1252
  },
1216
1253
  {
1217
1254
  "name": "since",
1218
1255
  "text": "7.14.0"
1219
1256
  }
1220
1257
  ],
1221
- "docs": "Set the App ID for the app (requires allowModifyAppId to be true in config)",
1258
+ "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",
1222
1259
  "complexTypes": [
1223
1260
  "SetAppIdOptions"
1224
1261
  ],