# UpdateManager.onCheckForUpdate(function callback)

with Promise style call: Not supported

Mini Program plugin: Not supported

Monitor the WeChat background request to check the update results event. WeChat automatically checks updates when the Mini Program is cold started, without the developer taking the initiative to trigger.

# parameter

# function callback

Call back function to WeChat background to check update result event

# parameter

# Object res
attribute type Introductions
hasUpdate boolean Is there a new version?

# sample code

[sample code]((UpdateManager#sample code))