调用wx.stopBeaconDiscovery导致微信闪退
单个调用
wx.stopBeaconDiscovery 可以正常调用成功。。
如果是在搜寻状态下,执行该方法,微信客户端直接闪退。。求解决~
wx.startBeaconDiscovery({ uuids: [ '16976050' , 'FDA50693-A4E2-4FB1-AFCF-C6EB07647825' ], success(res) { console.log( 'startIbeacon' , res); wx.onBeaconUpdate( function (arr) { console.log( 'onBeaconUpdate...' , arr); }); wx.getBeacons({ success(getinfo) { console.log( 'getBeacons success' , getinfo); }, }); }, fail(res) { console.log( 'fail' , res); }, complete(res) { console.log( 'complete' , res); } }); setTimeout( function () { wx.stopBeaconDiscovery({ success: function () { console.log( 'stopBeacon...' ); } }) }, 5000); |