UpdateManager.onCheckForUpdate 在真机上无效
166 浏览2025年10月15日作者:more_be_are

const updateManager = tt.getUpdateManager();

cc.error("尝试检测新版本");

updateManager.onCheckForUpdate((res) => {

console.error("1检测新版本", res.hasUpdate)

});


这一段用来检测新版本的代码,在模拟器上有回调,但是打包上传后扫码或是使用真机预览,都没有回调

右边是模拟器的,左边是真机扫描

我就想问这个API是不是不能在真机环境下使用?

最后一次编辑于 2025 年 10 月 15 日
共 9 条评论

相关问答

专题推荐

热门文章

热门问答