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: docs/api-js.md
+8
Original file line number
Diff line number
Diff line change
@@ -148,6 +148,14 @@ The `codePush` decorator accepts an "options" object that allows you to customiz
148
148
149
149
* __title__ *(String)*- The text used as the header of an update notification that is displayed to the end user. Defaults to `"Update available"`.
150
150
151
+
* __rollbackRetryOptions__ *(RollbackRetryOptions)*- An "options" object used to determine whether a rollback retry mechanism should be enabled, and if so, what settings to use. Defaults to `null`, which has the effect of disabling the retry mechanism completely. Settingthis to any truthy value will enable the retry mechanism with the default settings, and passing an object to this parameter allows enabling the retry mechanism as well as overriding one or more of the default values. The rollback retry mechanism allows the application to attempt to reinstall an update that was previously rolled back (with the restrictions specified in the options).
152
+
153
+
The following list represents the available options and their defaults:
154
+
155
+
* __delayInHours__ *(Number)*- Specifies the minimum time in hours that the app will wait after the latest rollback before attempting to reinstall the same rolled-back package. Defaults to `24`.
156
+
157
+
* __maxRetryAttempts__ *(Number)*- Specifies the maximum number of retry attempts that the app can make before it stops trying. Cannot be less than `1`. Defaults to `1`.
158
+
151
159
##### codePushStatusDidChange (event hook)
152
160
153
161
Called when the sync process moves from one stage to another in the overall update process. Theevent hook is called with a status code which represents the current state, and can be any of the [`SyncStatus`](#syncstatus) values.
0 commit comments