同样的问题,官方似乎已经放弃了小游戏开发工具了,这个bug也不管了
卡进度。在初始化页面卡了三天[图片]
2024-07-08onLoad(options) { if(wx.getScreenRecordingState) { console.log("============1111") wx.getScreenRecordingState({ success: function (res) { console.log("----"); if(res.state == "on") { console.log("用户正在录屏") _that.showRecordTipView() } else { console.log("用户没录屏") _that.onCloseRecordTip() } }, complete: function (res) { console.log("====") } }) } else { console.log("============2222") } 打印结果: [图片]
wx.getScreenRecordingState报错(jsapi no permission)?真机(iPhoneX)环境下(模拟器没法模拟录屏),调用wx.getScreenRecordingState监控用户是否在录屏的时候,报出如下错误: {errMsg: "getScreenRecordingState:fail jsapi has no permissi…sg=permission got, detail=jsapi has no permission"} 查了文档,没有发现这个权限需要授权,请问是哪里出问题了? 另外相关API(wx.onScreenRecordingStateChanged 和 wx.offScreenRecordingStateChanged)能调成功 具体错误如下: [图片]
2022-05-11