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

标签 ios bluetooth bluetooth-lowenergy progressive-web-apps web-bluetooth

当我看 https://caniuse.com/mdn-api_bluetooth这表明 Safari 和 iOS Safari 都不支持 Web 蓝牙,而且由于 Apple 的政策,所有 iOS 浏览器基本上也都支持 Safari,所以这意味着即使它们通常打开 Web 蓝牙,也没有任何浏览器可以挽救。
然而,最近某些新闻媒体报道说,蓝牙游戏 Controller 可以在 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.


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

最佳答案

BluefyWebBLE在 WKWebView 之上提供 Web 蓝牙 API 的实现。

关于ios - 如何从 iOS 网络应用程序与蓝牙设备配对?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64936262/

相关文章:

ios objective-c tableView 搜索栏

ios - Unity3d iOS 构建 exportArchive IPA 大小

ios - 设置 WebView Delegate 后崩溃

android - BLE信号丢失如何回调?

ios - 无法使用带有 NSLocationWhenInUseUsageDescription 的 Swift 和 iOS8 获取位置服务

ios - 在后台状态卡住http请求

Android:在没有 BluetoothManagerCallback 的情况下调用了 getBluetoothService()

c# - 如何通过蓝牙将字体发送到 Zebra 打印机

objective-c - 减少内存大小以确保 iOS 中的后台运行

python - 在单个文件中提供多个终端命令并一次运行所有命令?