Web Bluetooth:JS 端 startScan 唤起浏览器设备选择器,中央角色代码可复用,浏览器掌控权限
模拟器可注入故障:虚拟蓝牙栈支持延迟回调、远程断连、指定操作失败,CI 可复现硬件故障
按需注入权限:构建器只注入你用到的角色权限,避免多余清单、plist 与原生代码
💡 金句
Each target supports the roles available from its operating system. The API reports these limits instead of pretending every operation works everywhere.