const updateManager = tt.getUpdateManager();
cc.error("尝试检测新版本");
updateManager.onCheckForUpdate((res) => {
console.error("1检测新版本", res.hasUpdate)
});
这一段用来检测新版本的代码,在模拟器上有回调,但是打包上传后扫码或是使用真机预览,都没有回调
右边是模拟器的,左边是真机扫描
我就想问这个API是不是不能在真机环境下使用?
const updateManager = tt.getUpdateManager();
cc.error("尝试检测新版本");
updateManager.onCheckForUpdate((res) => {
console.error("1检测新版本", res.hasUpdate)
});
这一段用来检测新版本的代码,在模拟器上有回调,但是打包上传后扫码或是使用真机预览,都没有回调
右边是模拟器的,左边是真机扫描
我就想问这个API是不是不能在真机环境下使用?