@capgo/capacitor-updater 7.37.0 → 7.39.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/README.md +300 -0
- package/android/build.gradle +3 -0
- package/android/src/main/java/ee/forgr/capacitor_updater/CapacitorUpdaterPlugin.java +348 -22
- package/android/src/main/java/ee/forgr/capacitor_updater/CapgoUpdater.java +40 -1
- package/dist/docs.json +607 -1
- package/dist/esm/definitions.d.ts +426 -0
- package/dist/esm/definitions.js +103 -1
- package/dist/esm/definitions.js.map +1 -1
- package/dist/esm/web.d.ts +6 -1
- package/dist/esm/web.js +24 -0
- package/dist/esm/web.js.map +1 -1
- package/dist/plugin.cjs.js +132 -0
- package/dist/plugin.cjs.js.map +1 -1
- package/dist/plugin.js +132 -0
- package/dist/plugin.js.map +1 -1
- package/ios/Sources/CapacitorUpdaterPlugin/CapacitorUpdaterPlugin.swift +213 -2
- package/ios/Sources/CapacitorUpdaterPlugin/CapgoUpdater.swift +39 -1
- package/package.json +1 -1
package/dist/docs.json
CHANGED
|
@@ -1289,6 +1289,179 @@
|
|
|
1289
1289
|
"SetAppIdOptions"
|
|
1290
1290
|
],
|
|
1291
1291
|
"slug": "setappid"
|
|
1292
|
+
},
|
|
1293
|
+
{
|
|
1294
|
+
"name": "getAppUpdateInfo",
|
|
1295
|
+
"signature": "(options?: GetAppUpdateInfoOptions | undefined) => Promise<AppUpdateInfo>",
|
|
1296
|
+
"parameters": [
|
|
1297
|
+
{
|
|
1298
|
+
"name": "options",
|
|
1299
|
+
"docs": "Optional {@link GetAppUpdateInfoOptions} with country code for iOS.",
|
|
1300
|
+
"type": "GetAppUpdateInfoOptions | undefined"
|
|
1301
|
+
}
|
|
1302
|
+
],
|
|
1303
|
+
"returns": "Promise<AppUpdateInfo>",
|
|
1304
|
+
"tags": [
|
|
1305
|
+
{
|
|
1306
|
+
"name": "param",
|
|
1307
|
+
"text": "options Optional {@link GetAppUpdateInfoOptions} with country code for iOS."
|
|
1308
|
+
},
|
|
1309
|
+
{
|
|
1310
|
+
"name": "returns",
|
|
1311
|
+
"text": "Information about the current and available app versions."
|
|
1312
|
+
},
|
|
1313
|
+
{
|
|
1314
|
+
"name": "throws",
|
|
1315
|
+
"text": "{Error} If the operation fails or store information is unavailable."
|
|
1316
|
+
},
|
|
1317
|
+
{
|
|
1318
|
+
"name": "since",
|
|
1319
|
+
"text": "8.0.0"
|
|
1320
|
+
}
|
|
1321
|
+
],
|
|
1322
|
+
"docs": "Get information about the app's availability in the App Store or Play Store.\n\nThis method checks the native app stores to see if a newer version of the app\nis available for download. This is different from Capgo's OTA updates - this\nchecks for native app updates that require going through the app stores.\n\n**Platform differences:**\n- **Android**: Uses Play Store's In-App Updates API for accurate update information\n- **iOS**: Queries the App Store lookup API (requires country code for accurate results)\n\n**Returns information about:**\n- Current installed version\n- Available version in the store (if any)\n- Whether an update is available\n- Update priority (Android only)\n- Whether immediate/flexible updates are allowed (Android only)\n\nUse this to:\n- Check if users need to update from the app store\n- Show \"Update Available\" prompts for native updates\n- Implement version gating (require minimum native version)\n- Combine with Capgo OTA updates for a complete update strategy",
|
|
1323
|
+
"complexTypes": [
|
|
1324
|
+
"AppUpdateInfo",
|
|
1325
|
+
"GetAppUpdateInfoOptions"
|
|
1326
|
+
],
|
|
1327
|
+
"slug": "getappupdateinfo"
|
|
1328
|
+
},
|
|
1329
|
+
{
|
|
1330
|
+
"name": "openAppStore",
|
|
1331
|
+
"signature": "(options?: OpenAppStoreOptions | undefined) => Promise<void>",
|
|
1332
|
+
"parameters": [
|
|
1333
|
+
{
|
|
1334
|
+
"name": "options",
|
|
1335
|
+
"docs": "Optional {@link OpenAppStoreOptions} to customize which app's store page to open.",
|
|
1336
|
+
"type": "OpenAppStoreOptions | undefined"
|
|
1337
|
+
}
|
|
1338
|
+
],
|
|
1339
|
+
"returns": "Promise<void>",
|
|
1340
|
+
"tags": [
|
|
1341
|
+
{
|
|
1342
|
+
"name": "param",
|
|
1343
|
+
"text": "options Optional {@link OpenAppStoreOptions} to customize which app's store page to open."
|
|
1344
|
+
},
|
|
1345
|
+
{
|
|
1346
|
+
"name": "returns",
|
|
1347
|
+
"text": "Resolves when the store is opened."
|
|
1348
|
+
},
|
|
1349
|
+
{
|
|
1350
|
+
"name": "throws",
|
|
1351
|
+
"text": "{Error} If the store cannot be opened."
|
|
1352
|
+
},
|
|
1353
|
+
{
|
|
1354
|
+
"name": "since",
|
|
1355
|
+
"text": "8.0.0"
|
|
1356
|
+
}
|
|
1357
|
+
],
|
|
1358
|
+
"docs": "Open the app's page in the App Store or Play Store.\n\nThis navigates the user to your app's store listing where they can manually\nupdate the app. Use this as a fallback when in-app updates are not available\nor when the user needs to update on iOS.\n\n**Platform behavior:**\n- **Android**: Opens Play Store to the app's page\n- **iOS**: Opens App Store to the app's page\n\n**Customization options:**\n- `appId`: Specify a custom App Store ID (iOS) - useful for opening a different app's page\n- `packageName`: Specify a custom package name (Android) - useful for opening a different app's page",
|
|
1359
|
+
"complexTypes": [
|
|
1360
|
+
"OpenAppStoreOptions"
|
|
1361
|
+
],
|
|
1362
|
+
"slug": "openappstore"
|
|
1363
|
+
},
|
|
1364
|
+
{
|
|
1365
|
+
"name": "performImmediateUpdate",
|
|
1366
|
+
"signature": "() => Promise<AppUpdateResult>",
|
|
1367
|
+
"parameters": [],
|
|
1368
|
+
"returns": "Promise<AppUpdateResult>",
|
|
1369
|
+
"tags": [
|
|
1370
|
+
{
|
|
1371
|
+
"name": "returns",
|
|
1372
|
+
"text": "Result indicating success, cancellation, or failure."
|
|
1373
|
+
},
|
|
1374
|
+
{
|
|
1375
|
+
"name": "throws",
|
|
1376
|
+
"text": "{Error} If not on Android, no update is available, or immediate updates not allowed."
|
|
1377
|
+
},
|
|
1378
|
+
{
|
|
1379
|
+
"name": "since",
|
|
1380
|
+
"text": "8.0.0"
|
|
1381
|
+
}
|
|
1382
|
+
],
|
|
1383
|
+
"docs": "Perform an immediate in-app update on Android.\n\nThis triggers Google Play's immediate update flow, which:\n1. Shows a full-screen update UI\n2. Downloads and installs the update\n3. Restarts the app automatically\n\nThe user cannot continue using the app until the update is complete.\nThis is ideal for critical updates that must be installed immediately.\n\n**Requirements:**\n- Android only (throws error on iOS)\n- An update must be available (check with {@link getAppUpdateInfo} first)\n- The update must allow immediate updates (`immediateUpdateAllowed: true`)\n\n**User experience:**\n- Full-screen blocking UI\n- Progress shown during download\n- App automatically restarts after installation",
|
|
1384
|
+
"complexTypes": [
|
|
1385
|
+
"AppUpdateResult"
|
|
1386
|
+
],
|
|
1387
|
+
"slug": "performimmediateupdate"
|
|
1388
|
+
},
|
|
1389
|
+
{
|
|
1390
|
+
"name": "startFlexibleUpdate",
|
|
1391
|
+
"signature": "() => Promise<AppUpdateResult>",
|
|
1392
|
+
"parameters": [],
|
|
1393
|
+
"returns": "Promise<AppUpdateResult>",
|
|
1394
|
+
"tags": [
|
|
1395
|
+
{
|
|
1396
|
+
"name": "returns",
|
|
1397
|
+
"text": "Result indicating the update was started, cancelled, or failed."
|
|
1398
|
+
},
|
|
1399
|
+
{
|
|
1400
|
+
"name": "throws",
|
|
1401
|
+
"text": "{Error} If not on Android, no update is available, or flexible updates not allowed."
|
|
1402
|
+
},
|
|
1403
|
+
{
|
|
1404
|
+
"name": "since",
|
|
1405
|
+
"text": "8.0.0"
|
|
1406
|
+
}
|
|
1407
|
+
],
|
|
1408
|
+
"docs": "Start a flexible in-app update on Android.\n\nThis triggers Google Play's flexible update flow, which:\n1. Downloads the update in the background\n2. Allows the user to continue using the app\n3. Notifies when download is complete\n4. Requires calling {@link completeFlexibleUpdate} to install\n\nMonitor the download progress using the `onFlexibleUpdateStateChange` listener.\n\n**Requirements:**\n- Android only (throws error on iOS)\n- An update must be available (check with {@link getAppUpdateInfo} first)\n- The update must allow flexible updates (`flexibleUpdateAllowed: true`)\n\n**Typical flow:**\n1. Call `startFlexibleUpdate()` to begin download\n2. Listen to `onFlexibleUpdateStateChange` for progress\n3. When status is `DOWNLOADED`, prompt user to restart\n4. Call `completeFlexibleUpdate()` to install and restart",
|
|
1409
|
+
"complexTypes": [
|
|
1410
|
+
"AppUpdateResult"
|
|
1411
|
+
],
|
|
1412
|
+
"slug": "startflexibleupdate"
|
|
1413
|
+
},
|
|
1414
|
+
{
|
|
1415
|
+
"name": "completeFlexibleUpdate",
|
|
1416
|
+
"signature": "() => Promise<void>",
|
|
1417
|
+
"parameters": [],
|
|
1418
|
+
"returns": "Promise<void>",
|
|
1419
|
+
"tags": [
|
|
1420
|
+
{
|
|
1421
|
+
"name": "returns",
|
|
1422
|
+
"text": "Resolves when the update installation begins (app will restart)."
|
|
1423
|
+
},
|
|
1424
|
+
{
|
|
1425
|
+
"name": "throws",
|
|
1426
|
+
"text": "{Error} If not on Android or no downloaded update is pending."
|
|
1427
|
+
},
|
|
1428
|
+
{
|
|
1429
|
+
"name": "since",
|
|
1430
|
+
"text": "8.0.0"
|
|
1431
|
+
}
|
|
1432
|
+
],
|
|
1433
|
+
"docs": "Complete a flexible in-app update on Android.\n\nAfter a flexible update has been downloaded (status `DOWNLOADED` in\n`onFlexibleUpdateStateChange`), call this method to install the update\nand restart the app.\n\n**Important:** This will immediately restart the app. Make sure to:\n- Save any user data before calling\n- Prompt the user before restarting\n- Only call when the download status is `DOWNLOADED`",
|
|
1434
|
+
"complexTypes": [],
|
|
1435
|
+
"slug": "completeflexibleupdate"
|
|
1436
|
+
},
|
|
1437
|
+
{
|
|
1438
|
+
"name": "addListener",
|
|
1439
|
+
"signature": "(eventName: 'onFlexibleUpdateStateChange', listenerFunc: (state: FlexibleUpdateState) => void) => Promise<PluginListenerHandle>",
|
|
1440
|
+
"parameters": [
|
|
1441
|
+
{
|
|
1442
|
+
"name": "eventName",
|
|
1443
|
+
"docs": "",
|
|
1444
|
+
"type": "'onFlexibleUpdateStateChange'"
|
|
1445
|
+
},
|
|
1446
|
+
{
|
|
1447
|
+
"name": "listenerFunc",
|
|
1448
|
+
"docs": "",
|
|
1449
|
+
"type": "(state: FlexibleUpdateState) => void"
|
|
1450
|
+
}
|
|
1451
|
+
],
|
|
1452
|
+
"returns": "Promise<PluginListenerHandle>",
|
|
1453
|
+
"tags": [
|
|
1454
|
+
{
|
|
1455
|
+
"name": "since",
|
|
1456
|
+
"text": "8.0.0"
|
|
1457
|
+
}
|
|
1458
|
+
],
|
|
1459
|
+
"docs": "Listen for flexible update state changes on Android.\n\nThis event fires during the flexible update download process, providing:\n- Download progress (bytes downloaded / total bytes)\n- Installation status changes\n\n**Install status values:**\n- `UNKNOWN` (0): Unknown status\n- `PENDING` (1): Download pending\n- `DOWNLOADING` (2): Download in progress\n- `INSTALLING` (3): Installing the update\n- `INSTALLED` (4): Update installed (app restart needed)\n- `FAILED` (5): Update failed\n- `CANCELED` (6): Update was canceled\n- `DOWNLOADED` (11): Download complete, ready to install\n\nWhen status is `DOWNLOADED`, you should prompt the user and call\n{@link completeFlexibleUpdate} to finish the installation.",
|
|
1460
|
+
"complexTypes": [
|
|
1461
|
+
"PluginListenerHandle",
|
|
1462
|
+
"FlexibleUpdateState"
|
|
1463
|
+
],
|
|
1464
|
+
"slug": "addlisteneronflexibleupdatestatechange-"
|
|
1292
1465
|
}
|
|
1293
1466
|
],
|
|
1294
1467
|
"properties": []
|
|
@@ -2420,9 +2593,442 @@
|
|
|
2420
2593
|
"type": "string"
|
|
2421
2594
|
}
|
|
2422
2595
|
]
|
|
2596
|
+
},
|
|
2597
|
+
{
|
|
2598
|
+
"name": "AppUpdateInfo",
|
|
2599
|
+
"slug": "appupdateinfo",
|
|
2600
|
+
"docs": "Information about app updates available in the App Store or Play Store.",
|
|
2601
|
+
"tags": [
|
|
2602
|
+
{
|
|
2603
|
+
"text": "8.0.0",
|
|
2604
|
+
"name": "since"
|
|
2605
|
+
}
|
|
2606
|
+
],
|
|
2607
|
+
"methods": [],
|
|
2608
|
+
"properties": [
|
|
2609
|
+
{
|
|
2610
|
+
"name": "currentVersionName",
|
|
2611
|
+
"tags": [
|
|
2612
|
+
{
|
|
2613
|
+
"text": "8.0.0",
|
|
2614
|
+
"name": "since"
|
|
2615
|
+
}
|
|
2616
|
+
],
|
|
2617
|
+
"docs": "The currently installed version name (e.g., \"1.2.3\").",
|
|
2618
|
+
"complexTypes": [],
|
|
2619
|
+
"type": "string"
|
|
2620
|
+
},
|
|
2621
|
+
{
|
|
2622
|
+
"name": "availableVersionName",
|
|
2623
|
+
"tags": [
|
|
2624
|
+
{
|
|
2625
|
+
"text": "8.0.0",
|
|
2626
|
+
"name": "since"
|
|
2627
|
+
}
|
|
2628
|
+
],
|
|
2629
|
+
"docs": "The version name available in the store, if an update is available.\nMay be undefined if no update information is available.",
|
|
2630
|
+
"complexTypes": [],
|
|
2631
|
+
"type": "string | undefined"
|
|
2632
|
+
},
|
|
2633
|
+
{
|
|
2634
|
+
"name": "currentVersionCode",
|
|
2635
|
+
"tags": [
|
|
2636
|
+
{
|
|
2637
|
+
"text": "8.0.0",
|
|
2638
|
+
"name": "since"
|
|
2639
|
+
}
|
|
2640
|
+
],
|
|
2641
|
+
"docs": "The currently installed version code (Android) or build number (iOS).",
|
|
2642
|
+
"complexTypes": [],
|
|
2643
|
+
"type": "string"
|
|
2644
|
+
},
|
|
2645
|
+
{
|
|
2646
|
+
"name": "availableVersionCode",
|
|
2647
|
+
"tags": [
|
|
2648
|
+
{
|
|
2649
|
+
"text": "8.0.0",
|
|
2650
|
+
"name": "since"
|
|
2651
|
+
}
|
|
2652
|
+
],
|
|
2653
|
+
"docs": "The version code available in the store (Android only).\nOn iOS, this will be the same as `availableVersionName`.",
|
|
2654
|
+
"complexTypes": [],
|
|
2655
|
+
"type": "string | undefined"
|
|
2656
|
+
},
|
|
2657
|
+
{
|
|
2658
|
+
"name": "availableVersionReleaseDate",
|
|
2659
|
+
"tags": [
|
|
2660
|
+
{
|
|
2661
|
+
"text": "8.0.0",
|
|
2662
|
+
"name": "since"
|
|
2663
|
+
}
|
|
2664
|
+
],
|
|
2665
|
+
"docs": "The release date of the available version (iOS only).\nFormat: ISO 8601 date string.",
|
|
2666
|
+
"complexTypes": [],
|
|
2667
|
+
"type": "string | undefined"
|
|
2668
|
+
},
|
|
2669
|
+
{
|
|
2670
|
+
"name": "updateAvailability",
|
|
2671
|
+
"tags": [
|
|
2672
|
+
{
|
|
2673
|
+
"text": "8.0.0",
|
|
2674
|
+
"name": "since"
|
|
2675
|
+
}
|
|
2676
|
+
],
|
|
2677
|
+
"docs": "The current update availability status.",
|
|
2678
|
+
"complexTypes": [
|
|
2679
|
+
"AppUpdateAvailability"
|
|
2680
|
+
],
|
|
2681
|
+
"type": "AppUpdateAvailability"
|
|
2682
|
+
},
|
|
2683
|
+
{
|
|
2684
|
+
"name": "updatePriority",
|
|
2685
|
+
"tags": [
|
|
2686
|
+
{
|
|
2687
|
+
"text": "8.0.0",
|
|
2688
|
+
"name": "since"
|
|
2689
|
+
}
|
|
2690
|
+
],
|
|
2691
|
+
"docs": "The priority of the update as set by the developer in Play Console (Android only).\nValues range from 0 (default/lowest) to 5 (highest priority).\n\nUse this to decide whether to show an update prompt or force an update.",
|
|
2692
|
+
"complexTypes": [],
|
|
2693
|
+
"type": "number | undefined"
|
|
2694
|
+
},
|
|
2695
|
+
{
|
|
2696
|
+
"name": "immediateUpdateAllowed",
|
|
2697
|
+
"tags": [
|
|
2698
|
+
{
|
|
2699
|
+
"text": "8.0.0",
|
|
2700
|
+
"name": "since"
|
|
2701
|
+
}
|
|
2702
|
+
],
|
|
2703
|
+
"docs": "Whether an immediate update is allowed (Android only).\n\nIf `true`, you can call {@link CapacitorUpdaterPlugin.performImmediateUpdate}.",
|
|
2704
|
+
"complexTypes": [],
|
|
2705
|
+
"type": "boolean | undefined"
|
|
2706
|
+
},
|
|
2707
|
+
{
|
|
2708
|
+
"name": "flexibleUpdateAllowed",
|
|
2709
|
+
"tags": [
|
|
2710
|
+
{
|
|
2711
|
+
"text": "8.0.0",
|
|
2712
|
+
"name": "since"
|
|
2713
|
+
}
|
|
2714
|
+
],
|
|
2715
|
+
"docs": "Whether a flexible update is allowed (Android only).\n\nIf `true`, you can call {@link CapacitorUpdaterPlugin.startFlexibleUpdate}.",
|
|
2716
|
+
"complexTypes": [],
|
|
2717
|
+
"type": "boolean | undefined"
|
|
2718
|
+
},
|
|
2719
|
+
{
|
|
2720
|
+
"name": "clientVersionStalenessDays",
|
|
2721
|
+
"tags": [
|
|
2722
|
+
{
|
|
2723
|
+
"text": "8.0.0",
|
|
2724
|
+
"name": "since"
|
|
2725
|
+
}
|
|
2726
|
+
],
|
|
2727
|
+
"docs": "Number of days since the update became available (Android only).\n\nUse this to implement \"update nagging\" - remind users more frequently\nas the update ages.",
|
|
2728
|
+
"complexTypes": [],
|
|
2729
|
+
"type": "number | undefined"
|
|
2730
|
+
},
|
|
2731
|
+
{
|
|
2732
|
+
"name": "installStatus",
|
|
2733
|
+
"tags": [
|
|
2734
|
+
{
|
|
2735
|
+
"text": "8.0.0",
|
|
2736
|
+
"name": "since"
|
|
2737
|
+
}
|
|
2738
|
+
],
|
|
2739
|
+
"docs": "The current install status of a flexible update (Android only).",
|
|
2740
|
+
"complexTypes": [
|
|
2741
|
+
"FlexibleUpdateInstallStatus"
|
|
2742
|
+
],
|
|
2743
|
+
"type": "FlexibleUpdateInstallStatus"
|
|
2744
|
+
},
|
|
2745
|
+
{
|
|
2746
|
+
"name": "minimumOsVersion",
|
|
2747
|
+
"tags": [
|
|
2748
|
+
{
|
|
2749
|
+
"text": "8.0.0",
|
|
2750
|
+
"name": "since"
|
|
2751
|
+
}
|
|
2752
|
+
],
|
|
2753
|
+
"docs": "The minimum OS version required for the available update (iOS only).",
|
|
2754
|
+
"complexTypes": [],
|
|
2755
|
+
"type": "string | undefined"
|
|
2756
|
+
}
|
|
2757
|
+
]
|
|
2758
|
+
},
|
|
2759
|
+
{
|
|
2760
|
+
"name": "GetAppUpdateInfoOptions",
|
|
2761
|
+
"slug": "getappupdateinfooptions",
|
|
2762
|
+
"docs": "Options for {@link CapacitorUpdaterPlugin.getAppUpdateInfo}.",
|
|
2763
|
+
"tags": [
|
|
2764
|
+
{
|
|
2765
|
+
"text": "8.0.0",
|
|
2766
|
+
"name": "since"
|
|
2767
|
+
}
|
|
2768
|
+
],
|
|
2769
|
+
"methods": [],
|
|
2770
|
+
"properties": [
|
|
2771
|
+
{
|
|
2772
|
+
"name": "country",
|
|
2773
|
+
"tags": [
|
|
2774
|
+
{
|
|
2775
|
+
"text": "8.0.0",
|
|
2776
|
+
"name": "since"
|
|
2777
|
+
}
|
|
2778
|
+
],
|
|
2779
|
+
"docs": "Two-letter country code (ISO 3166-1 alpha-2) for the App Store lookup.\n\nThis is required on iOS to get accurate App Store information, as app\navailability and versions can vary by country.\n\nExamples: \"US\", \"GB\", \"DE\", \"JP\", \"FR\"\n\nOn Android, this option is ignored as the Play Store handles region\ndetection automatically.",
|
|
2780
|
+
"complexTypes": [],
|
|
2781
|
+
"type": "string | undefined"
|
|
2782
|
+
}
|
|
2783
|
+
]
|
|
2784
|
+
},
|
|
2785
|
+
{
|
|
2786
|
+
"name": "OpenAppStoreOptions",
|
|
2787
|
+
"slug": "openappstoreoptions",
|
|
2788
|
+
"docs": "Options for {@link CapacitorUpdaterPlugin.openAppStore}.",
|
|
2789
|
+
"tags": [
|
|
2790
|
+
{
|
|
2791
|
+
"text": "8.0.0",
|
|
2792
|
+
"name": "since"
|
|
2793
|
+
}
|
|
2794
|
+
],
|
|
2795
|
+
"methods": [],
|
|
2796
|
+
"properties": [
|
|
2797
|
+
{
|
|
2798
|
+
"name": "packageName",
|
|
2799
|
+
"tags": [
|
|
2800
|
+
{
|
|
2801
|
+
"text": "8.0.0",
|
|
2802
|
+
"name": "since"
|
|
2803
|
+
}
|
|
2804
|
+
],
|
|
2805
|
+
"docs": "The Android package name to open in the Play Store.\n\nIf not specified, uses the current app's package name.\nUse this to open a different app's store page.\n\nOnly used on Android.",
|
|
2806
|
+
"complexTypes": [],
|
|
2807
|
+
"type": "string | undefined"
|
|
2808
|
+
},
|
|
2809
|
+
{
|
|
2810
|
+
"name": "appId",
|
|
2811
|
+
"tags": [
|
|
2812
|
+
{
|
|
2813
|
+
"text": "8.0.0",
|
|
2814
|
+
"name": "since"
|
|
2815
|
+
}
|
|
2816
|
+
],
|
|
2817
|
+
"docs": "The iOS App Store ID to open.\n\nIf not specified, uses the current app's bundle identifier to look up the app.\nUse this to open a different app's store page or when automatic lookup fails.\n\nOnly used on iOS.",
|
|
2818
|
+
"complexTypes": [],
|
|
2819
|
+
"type": "string | undefined"
|
|
2820
|
+
}
|
|
2821
|
+
]
|
|
2822
|
+
},
|
|
2823
|
+
{
|
|
2824
|
+
"name": "AppUpdateResult",
|
|
2825
|
+
"slug": "appupdateresult",
|
|
2826
|
+
"docs": "Result of an app update operation.",
|
|
2827
|
+
"tags": [
|
|
2828
|
+
{
|
|
2829
|
+
"text": "8.0.0",
|
|
2830
|
+
"name": "since"
|
|
2831
|
+
}
|
|
2832
|
+
],
|
|
2833
|
+
"methods": [],
|
|
2834
|
+
"properties": [
|
|
2835
|
+
{
|
|
2836
|
+
"name": "code",
|
|
2837
|
+
"tags": [
|
|
2838
|
+
{
|
|
2839
|
+
"text": "8.0.0",
|
|
2840
|
+
"name": "since"
|
|
2841
|
+
}
|
|
2842
|
+
],
|
|
2843
|
+
"docs": "The result code of the update operation.",
|
|
2844
|
+
"complexTypes": [
|
|
2845
|
+
"AppUpdateResultCode"
|
|
2846
|
+
],
|
|
2847
|
+
"type": "AppUpdateResultCode"
|
|
2848
|
+
}
|
|
2849
|
+
]
|
|
2850
|
+
},
|
|
2851
|
+
{
|
|
2852
|
+
"name": "FlexibleUpdateState",
|
|
2853
|
+
"slug": "flexibleupdatestate",
|
|
2854
|
+
"docs": "State information for flexible update progress (Android only).",
|
|
2855
|
+
"tags": [
|
|
2856
|
+
{
|
|
2857
|
+
"text": "8.0.0",
|
|
2858
|
+
"name": "since"
|
|
2859
|
+
}
|
|
2860
|
+
],
|
|
2861
|
+
"methods": [],
|
|
2862
|
+
"properties": [
|
|
2863
|
+
{
|
|
2864
|
+
"name": "installStatus",
|
|
2865
|
+
"tags": [
|
|
2866
|
+
{
|
|
2867
|
+
"text": "8.0.0",
|
|
2868
|
+
"name": "since"
|
|
2869
|
+
}
|
|
2870
|
+
],
|
|
2871
|
+
"docs": "The current installation status.",
|
|
2872
|
+
"complexTypes": [
|
|
2873
|
+
"FlexibleUpdateInstallStatus"
|
|
2874
|
+
],
|
|
2875
|
+
"type": "FlexibleUpdateInstallStatus"
|
|
2876
|
+
},
|
|
2877
|
+
{
|
|
2878
|
+
"name": "bytesDownloaded",
|
|
2879
|
+
"tags": [
|
|
2880
|
+
{
|
|
2881
|
+
"text": "8.0.0",
|
|
2882
|
+
"name": "since"
|
|
2883
|
+
}
|
|
2884
|
+
],
|
|
2885
|
+
"docs": "Number of bytes downloaded so far.\nOnly available during the `DOWNLOADING` status.",
|
|
2886
|
+
"complexTypes": [],
|
|
2887
|
+
"type": "number | undefined"
|
|
2888
|
+
},
|
|
2889
|
+
{
|
|
2890
|
+
"name": "totalBytesToDownload",
|
|
2891
|
+
"tags": [
|
|
2892
|
+
{
|
|
2893
|
+
"text": "8.0.0",
|
|
2894
|
+
"name": "since"
|
|
2895
|
+
}
|
|
2896
|
+
],
|
|
2897
|
+
"docs": "Total number of bytes to download.\nOnly available during the `DOWNLOADING` status.",
|
|
2898
|
+
"complexTypes": [],
|
|
2899
|
+
"type": "number | undefined"
|
|
2900
|
+
}
|
|
2901
|
+
]
|
|
2902
|
+
}
|
|
2903
|
+
],
|
|
2904
|
+
"enums": [
|
|
2905
|
+
{
|
|
2906
|
+
"name": "AppUpdateAvailability",
|
|
2907
|
+
"slug": "appupdateavailability",
|
|
2908
|
+
"members": [
|
|
2909
|
+
{
|
|
2910
|
+
"name": "UNKNOWN",
|
|
2911
|
+
"value": "0",
|
|
2912
|
+
"tags": [],
|
|
2913
|
+
"docs": "Update availability is unknown.\nThis typically means the check hasn't completed or failed."
|
|
2914
|
+
},
|
|
2915
|
+
{
|
|
2916
|
+
"name": "UPDATE_NOT_AVAILABLE",
|
|
2917
|
+
"value": "1",
|
|
2918
|
+
"tags": [],
|
|
2919
|
+
"docs": "No update is available.\nThe installed version is the latest."
|
|
2920
|
+
},
|
|
2921
|
+
{
|
|
2922
|
+
"name": "UPDATE_AVAILABLE",
|
|
2923
|
+
"value": "2",
|
|
2924
|
+
"tags": [],
|
|
2925
|
+
"docs": "An update is available for download."
|
|
2926
|
+
},
|
|
2927
|
+
{
|
|
2928
|
+
"name": "UPDATE_IN_PROGRESS",
|
|
2929
|
+
"value": "3",
|
|
2930
|
+
"tags": [],
|
|
2931
|
+
"docs": "An update is currently being downloaded or installed."
|
|
2932
|
+
}
|
|
2933
|
+
]
|
|
2934
|
+
},
|
|
2935
|
+
{
|
|
2936
|
+
"name": "FlexibleUpdateInstallStatus",
|
|
2937
|
+
"slug": "flexibleupdateinstallstatus",
|
|
2938
|
+
"members": [
|
|
2939
|
+
{
|
|
2940
|
+
"name": "UNKNOWN",
|
|
2941
|
+
"value": "0",
|
|
2942
|
+
"tags": [],
|
|
2943
|
+
"docs": "Unknown install status."
|
|
2944
|
+
},
|
|
2945
|
+
{
|
|
2946
|
+
"name": "PENDING",
|
|
2947
|
+
"value": "1",
|
|
2948
|
+
"tags": [],
|
|
2949
|
+
"docs": "Download is pending and will start soon."
|
|
2950
|
+
},
|
|
2951
|
+
{
|
|
2952
|
+
"name": "DOWNLOADING",
|
|
2953
|
+
"value": "2",
|
|
2954
|
+
"tags": [],
|
|
2955
|
+
"docs": "Download is in progress.\nCheck `bytesDownloaded` and `totalBytesToDownload` for progress."
|
|
2956
|
+
},
|
|
2957
|
+
{
|
|
2958
|
+
"name": "INSTALLING",
|
|
2959
|
+
"value": "3",
|
|
2960
|
+
"tags": [],
|
|
2961
|
+
"docs": "The update is being installed."
|
|
2962
|
+
},
|
|
2963
|
+
{
|
|
2964
|
+
"name": "INSTALLED",
|
|
2965
|
+
"value": "4",
|
|
2966
|
+
"tags": [],
|
|
2967
|
+
"docs": "The update has been installed.\nThe app needs to be restarted to use the new version."
|
|
2968
|
+
},
|
|
2969
|
+
{
|
|
2970
|
+
"name": "FAILED",
|
|
2971
|
+
"value": "5",
|
|
2972
|
+
"tags": [],
|
|
2973
|
+
"docs": "The update failed to download or install."
|
|
2974
|
+
},
|
|
2975
|
+
{
|
|
2976
|
+
"name": "CANCELED",
|
|
2977
|
+
"value": "6",
|
|
2978
|
+
"tags": [],
|
|
2979
|
+
"docs": "The update was canceled by the user."
|
|
2980
|
+
},
|
|
2981
|
+
{
|
|
2982
|
+
"name": "DOWNLOADED",
|
|
2983
|
+
"value": "11",
|
|
2984
|
+
"tags": [],
|
|
2985
|
+
"docs": "The update has been downloaded and is ready to install.\nCall {@link CapacitorUpdaterPlugin.completeFlexibleUpdate} to install."
|
|
2986
|
+
}
|
|
2987
|
+
]
|
|
2988
|
+
},
|
|
2989
|
+
{
|
|
2990
|
+
"name": "AppUpdateResultCode",
|
|
2991
|
+
"slug": "appupdateresultcode",
|
|
2992
|
+
"members": [
|
|
2993
|
+
{
|
|
2994
|
+
"name": "OK",
|
|
2995
|
+
"value": "0",
|
|
2996
|
+
"tags": [],
|
|
2997
|
+
"docs": "The update completed successfully."
|
|
2998
|
+
},
|
|
2999
|
+
{
|
|
3000
|
+
"name": "CANCELED",
|
|
3001
|
+
"value": "1",
|
|
3002
|
+
"tags": [],
|
|
3003
|
+
"docs": "The user canceled the update."
|
|
3004
|
+
},
|
|
3005
|
+
{
|
|
3006
|
+
"name": "FAILED",
|
|
3007
|
+
"value": "2",
|
|
3008
|
+
"tags": [],
|
|
3009
|
+
"docs": "The update failed."
|
|
3010
|
+
},
|
|
3011
|
+
{
|
|
3012
|
+
"name": "NOT_AVAILABLE",
|
|
3013
|
+
"value": "3",
|
|
3014
|
+
"tags": [],
|
|
3015
|
+
"docs": "No update is available."
|
|
3016
|
+
},
|
|
3017
|
+
{
|
|
3018
|
+
"name": "NOT_ALLOWED",
|
|
3019
|
+
"value": "4",
|
|
3020
|
+
"tags": [],
|
|
3021
|
+
"docs": "The requested update type is not allowed.\nFor example, trying to perform an immediate update when only flexible is allowed."
|
|
3022
|
+
},
|
|
3023
|
+
{
|
|
3024
|
+
"name": "INFO_MISSING",
|
|
3025
|
+
"value": "5",
|
|
3026
|
+
"tags": [],
|
|
3027
|
+
"docs": "Required information is missing.\nThis can happen if {@link CapacitorUpdaterPlugin.getAppUpdateInfo} wasn't called first."
|
|
3028
|
+
}
|
|
3029
|
+
]
|
|
2423
3030
|
}
|
|
2424
3031
|
],
|
|
2425
|
-
"enums": [],
|
|
2426
3032
|
"typeAliases": [
|
|
2427
3033
|
{
|
|
2428
3034
|
"name": "BundleStatus",
|