wx.getUpdateManager()在开发工具上有效果,但是在真机上没反应,请问是怎么回事?
const updateManager = wx.getUpdateManager();
updateManager.onCheckForUpdate(function(res) {
// 请求完新版本信息的回调
});
updateManager.onUpdateReady(function() {
wx.showModal({
title: '更新提示',
content: '新版本已经准备好,是否重启应用?',
success: function(res) {
if (res.confirm) {
// 新的版本已经下载好,调用 applyUpdate 应用新版本并重启
updateManager.applyUpdate();
wx.setStorageSync('versionUpdate', '');
}
}
});
});
你好,请具体描述问题出现的流程,并提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。
wechatide://minicode/VZurDwms7k2Y
这个版本一直不行,没有反应
真的是不行,这几天都被这个问题 搞晕了。魅蓝 note2 系统5.1 微信 6.6.3 弹出来的库是1.9.97