华为手机调用蓝牙的问题,有啥进展了吗
- 当前 Bug 的表现(可附上截图)
华为的Android 9.0的手机,搜不到蓝牙设备
- 预期表现
wx.onBluetoothDeviceFound 返回搜到的蓝牙设备
- 复现路径
华为 Mate 20等一系列华为Android 9.0的手机,调用wx.startBluetoothDevicesDiscovery,搜索周边BLE的蓝牙设备(我们手上是Nordic的nrf51822芯片设备),这个设备是在华为手机设置的蓝牙列表能搜到的,但在小程序中搜不到。我们一系列客户的华为手机都有这个情况。其他手机没问题。
- 提供一个最简复现 Demo
官方示例代码:
wx.startBluetoothDevicesDiscovery({ services: ['FEE7'],
success(res) { console.log(res)
}
})
wx.onBluetoothDeviceFound(function (devices) { console.log('new device list has founded') console.dir(devices) console.log(ab2hex(devices[0].advertisData))
})
同时看到论坛上,相关问题以及反馈过多遍,是否有解决反馈,下面是一些截图:







