UpdateManager.onCheckForUpdate

Listen for the event that a request is sent to the server to check for updates. Instead of being triggered actively by the developer, checking the version update is triggered automatically during the mini program cold start.

Parameter

The parameter is in object type and has the following property:

Property

Type

Required

Description

hasUpdateBoolean

Yes

An indicator of whether a new version is available.