手机息屏后获取不到,亮屏后可以获取到怎么解决呢,求解
微信小程序iBeacons设备信息获取不到?[代码]wx.startBeaconDiscovery({[代码] [代码] [代码][代码]uuids: [[代码][代码]'0D7E7DB3-78DF-40FF-82B7-85EB8484BC53'[代码][代码]],[代码][代码] [代码][代码]success: [代码][代码]function[代码] [代码](res) {[代码][代码] [代码][代码]console.log('success')[代码] [代码] [代码][代码]},[代码][代码] [代码][代码]fail: [代码][代码]function[代码] [代码](err) {[代码][代码] [代码][代码]console.log([代码][代码]'error'[代码][代码])[代码][代码] [代码][代码]console.log(err)[代码][代码] [代码][代码]},[代码][代码] [代码][代码]complete: [代码][代码]function[代码] [代码](res) {[代码][代码] [代码][代码]console.log([代码][代码]'complete'[代码][代码])[代码][代码] [代码][代码]}[代码][代码] [代码][代码]})[代码] startBeaconDiscovery接口返回success,说明可以检测到我的iBeacon设备,但是wx.getBeacons的接口返回的beacons始终是空数组。 [代码]wx.getBeacons({[代码][代码] [代码][代码]success: [代码][代码]function[代码] [代码](res) {[代码][代码] [代码][代码]console.log(res)[代码][代码] [代码][代码]wx.showModal({[代码][代码] [代码][代码]title: [代码][代码]'SUCCESS'[代码][代码],[代码][代码] [代码][代码]content: [代码][代码]'lalal'[代码][代码],[代码][代码] [代码][代码]})[代码][代码] [代码][代码]}[代码][代码] [代码][代码]})[代码]有谁解答下我的这个问题吗? 设备是IOS10 iphone7
2023-03-27手机息屏获取不到,有解决过吗
wx.getBeacons、wx.onBeaconUpdate获取不到蓝牙信标?执行顺序是wx.startBeaconDiscovery->wx.getBeacons、wx.onBeaconUpdate->wx.stopBeaconDiscovery 但是wx.getBeacons、wx.onBeaconUpdate都获取不到蓝牙信标信息 以下UUID应该是这么填吧? [图片] [图片] 代码片段:https://developers.weixin.qq.com/s/FcLWF2m97cGT
2023-03-27