UpdateManager.onUpdateReady

Listen for the event that a new mini program version is available. Instead of being triggered by the developer, the client side triggers the new version downloading actively. A callback is performed after the new version of the mini program is successfully downloaded.

Parameters

Object res

Property

Type

Description

success

Boolean

An indicator of whether a new mini program version is downloaded successfully.

Valid values:

  • true: the mini program version is downloaded successfully.
  • false: Failed to download the new version.