问题1:我代码中的搜索蓝牙列表中,使用了wx.getBluetoothDevices,
wx.onBluetoothDeviceFound,
wx.startBluetoothDevicesDiscovery
去获取蓝牙设备,其他几个手机都能正常获取设备,但是vivo x9plus一直无法搜索到设备,startBluetoothDevicesDiscovery返回success, 但是onBluetoothDeviceFound一直没有被调用,getBluetoothDevices中也没有蓝牙设备
问题2:另外,华为P7,
startBluetoothDevicesDiscovery
时无法使用services:[ ] 过滤, 必须搜索到设备后再来匹配
以上手机微信都是6.6.1,
问题1:
A.想问一下vivo x9plus这个手机原生的app搜索设备能否成功呢?
B.打开gps定位开关试试,有部分6.0以上机子是需要gps权限才能搜索设备的。
问题2:
其他手机跑同一段代码都可以搜索是吧?那可能要找找为啥了..方便复现一下问题,提供微信号,并在任意Android聊天输入框输入//uplog上传日志,感谢。
为什么执行
wx.onBluetoothDeviceFound()
没有任何反应 好气!
我试过,原生的程序可以直接搜,小程序需要同时打开GPS