wx.getUpdateManager()接口对体验版不生效吗?
app.js文件的onLaunch方法中检查版本更新
// 检查版本更新 console.log('检查版本更新') let updateManager = wx.getUpdateManager() updateManager.onCheckForUpdate(function (res) { console.log('检查完版本信息', res) }) updateManager.onUpdateReady(function (res) { console.log('新版本下载完毕,准备强制更新', res) updateManager.applyUpdate() }) updateManager.onUpdateFailed(function (res) { console.log('新版本下载失败', res) }) |
我用体验版测试,不管体验版版本怎么调整,onCheckForUpdate回调输出的hasUpdate值都是false,但是实际上我看到的渲染结果确实是最新的。
问题:这个api是只对正式版有效吗?我看好多帖子都说正式版也不生效,我这边还不能提交审核,所以想确认下这个api是否有什么限制。
