鸿蒙NEXT系统下,wx.openBluetoothAdapter 无网络情况下不会初始化蓝牙,也不会触发授权弹窗(安卓和IOS都有弹窗),在联网情况下没有问题,
错误打印如下:
[wxobs] Failed to get cosInfo {"errno": 108, "errMsg": "operateWXData:fail cgi failed for network issues"}
| 问题类型 | API/组件名称 | 微信版本 | 基础库版本 |
|---|---|---|---|
| Bug | wx.openBluetoothAdapter | 8.0.15.64 | 3.15.0 |
3 个回答
请具体描述问题出现的流程,并提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。
我也遇到这个问题,鸿蒙能不能加快适配优化,急等!!!
2. 只需要在鸿蒙NEXT在无网环境下调用wx.openBluetoothAdapter就能触发