# UpdateManager.onCheckForUpdate(function callback)

Listens on the event that a request for checking for updates is sent to the WeChat backend. WeChat automatically checks for updates when the Mini program cold starts. The developer does not need to trigger this method.

# Parameters

# function callback

The callback function for the event that a request for checking for updates is sent to the WeChat backend.

# Parameters

# Object res
Property Type Description
hasUpdate boolean Indicates whether a new version is available