You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/live-update/README.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -127,7 +127,7 @@ We recommend to declare [`CA92.1`](https://developer.apple.com/documentation/bun
127
127
|**`autoBlockRolledBackBundles`**| <code>boolean</code> | Whether or not to automatically block bundles that have been rolled back. When enabled, the plugin will automatically block bundles that caused a rollback (up to 100 bundles). When the limit is reached, the oldest blocked bundle is unblocked. Blocked bundles will be skipped in future sync operations. **Attention**: This option has no effect if `readyTimeout` is set to `0`. Only available on Android and iOS. | <code>false</code> | 7.3.0 |
128
128
|**`autoDeleteBundles`**| <code>boolean</code> | Whether or not to automatically delete unused bundles. When enabled, the plugin will automatically delete unused bundles after calling `ready()`. | <code>false</code> | 5.0.0 |
129
129
|**`autoUpdateStrategy`**| <code>'none' \| 'background'</code> | The auto-update strategy for live updates. - `none`: Live updates will not be applied automatically. - `background`: Live updates will be automatically downloaded and applied in the background at app startup and when the app resumes (if the last check was more than 15 minutes ago). Only available on Android and iOS. | <code>'none'</code> | 7.3.0 |
130
-
|**`defaultChannel`**| <code>string</code> | The default channel of the app. This can be overridden by `setChannel()` or the `channel` parameter of `sync()`. It takes priority over the native channel configuration (`CapawesomeLiveUpdateDefaultChannel` in `Info.plist` on iOS or `capawesome_live_update_default_channel` in `strings.xml` on Android). || 6.3.0 |
130
+
|**`defaultChannel`**| <code>string</code> | The default channel of the app. This can be overridden by `setChannel()`, the `channel` parameter of `sync()`, or the native channel configuration (`CapawesomeLiveUpdateDefaultChannel` in `Info.plist` on iOS or `capawesome_live_update_default_channel` in `strings.xml` on Android).|| 6.3.0 |
131
131
|**`httpTimeout`**| <code>number</code> | The timeout in milliseconds for HTTP requests. | <code>60000</code> | 6.4.0 |
132
132
|**`publicKey`**| <code>string</code> | The public key to verify the integrity of the bundle. The public key must be a PEM-encoded RSA public key. || 6.1.0 |
133
133
|**`readyTimeout`**| <code>number</code> | The timeout in milliseconds to wait for the app to be ready before resetting to the default bundle. It is strongly **recommended** to configure this option (e.g. `10000` ms) so that the plugin can roll back to the default bundle in case of problems. If configured, the plugin will wait for the app to call the `ready()` method before resetting to the default bundle. Set to `0` to disable the timeout. | <code>0</code> | 5.0.0 |
@@ -459,9 +459,9 @@ Get the channel that is used for the update.
459
459
460
460
The channel is resolved in the following order (highest priority first):
461
461
1.`setChannel()` (SharedPreferences on Android / UserDefaults on iOS)
462
-
2. Capacitor config `defaultChannel`
463
-
3. Native config (`CapawesomeLiveUpdateDefaultChannel` in `Info.plist` on iOS or
462
+
2. Native config (`CapawesomeLiveUpdateDefaultChannel` in `Info.plist` on iOS or
464
463
`capawesome_live_update_default_channel` in `strings.xml` on Android)
464
+
3. Capacitor config `defaultChannel`
465
465
466
466
**Note**: The `channel` parameter of `sync()` takes the highest priority
467
467
but is not persisted and therefore not returned by this method.
0 commit comments