如何从 iOS 网络应用程序与蓝牙设备配对?

How to pair with a Bluetooth device from an iOS web application?

当我查看 https://caniuse.com/mdn-api_bluetooth 时,它表明 Safari 和 iOS Safari 都不支持网络蓝牙,并且由于 Apple 政策,所有 iOS 浏览器基本上也支持 Safari,所以这意味着none 的浏览器可能会来拯救,即使它们通常会打开 Web 蓝牙。

但是某些新闻媒体最近报道说蓝牙游戏控制器可以在 iOS 上配对用于游戏流网络应用程序:https://www.extremetech.com/gaming/317578-nvidia-google-to-support-cloud-gaming-on-iphone-via-web-apps

You can pair an Xbox, PS4, or mobile Bluetooth controller with the device. The web app also has touch controls, but they won’t work in all games.

技术上怎么可能?我有一个与蓝牙低功耗设备通信的本机移动应用程序,如果苹果平台也可以覆盖,我会把它移到网络上。文章报道 Apple 以隐私为由明确避免使用 Web Bluetooth:https://www.zdnet.com/article/apple-declined-to-implement-16-web-apis-in-safari-due-to-privacy-concerns/

Bluefy and WebBLE 在 WKWebView 之上提供 Web 蓝牙 API 的实现。