@appzung/react-native-code-push v11.0.0-rc6
@appzung/react-native-code-push / SyncOptions
optional
ignoreFailedUpdates:boolean
optional
installMode:InstallMode
Specifies when you would like to install regular updates (i.e. those that aren't marked as mandatory).
Defaults to InstallMode.ON_NEXT_RESTART.
optional
mandatoryInstallMode:InstallMode
Specifies when you would like to install updates which are marked as mandatory.
Defaults to InstallMode.IMMEDIATE.
optional
minimumBackgroundDuration:number
Specifies the minimum number of seconds that the app needs to have been in the background before restarting the app. This property
only applies to updates which are installed using InstallMode.ON_NEXT_RESUME
or InstallMode.ON_NEXT_SUSPEND
, and can be useful
for getting your update in front of end users sooner, without being too obtrusive. Defaults to 0
, which has the effect of applying
the update immediately after a resume or unless the app suspension is long enough to not matter, regardless how long it was in the background.
optional
releaseChannelPublicId:string
Specifies the release channel you want to query for an update against.
By default, this value is derived from the Info.plist file (iOS) and strings resources (Android), but this option allows you to override it from the JS-side if you need to dynamically use a different release channel for a specific call to sync.
optional
rollbackRetryOptions:true
|RollbackRetryOptions
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).
This defaults to null, which has the effect of disabling the retry mechanism. Setting this to true will enable the retry mechanism with the default settings, and passing an object to this parameter allows enabling the rollback retry as well as overriding one or more of the default values.
optional
updateDialog:true
|UpdateDialog
Used to determine whether a confirmation dialog should be displayed to the end user when an update is available, and if so, what strings to use.
Defaults to null, which has the effect of disabling the dialog completely. Setting this to true will enable the dialog with the default strings, and passing an object to this parameter allows enabling the dialog as well as overriding one or more of the default strings.