UpdateManager.onUpdateFailed

Listen for the event that the mini program version update is failed. Instead of being triggered by the developer, the client side triggers the new version downloading actively.

A callback is performed when the new version of the mini program is failed to be downloaded. The failure might be caused by the network issue.

Parameters

Object res

Property

Type

Description

success

Boolean

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

Valid values:

  • true: the mini program version is updated successfully.
  • false: the mini program version failed to updated.