【问题标题】:Can you run a background iBeacon/Eddystone scan in web-bluetooth using a service worker? [closed]您可以使用服务工作者在网络蓝牙中运行后台 iBeacon/Eddystone 扫描吗? [关闭]
【发布时间】:2019-05-26 20:39:42
【问题描述】:

随着新网络蓝牙功能的发布,我相信 iBeacon/Eddystone 信标扫描可以在使用网络蓝牙的 PWA 中进行。我正在运行一个用例,我需要一些帮助来实现后台服务工作者,它使用 chrome 服务工作者或智能手机中的类似工具在后台扫描信标?

这可能吗?如果可以,怎么做?

【问题讨论】:

标签: javascript web bluetooth beacon web-bluetooth


【解决方案1】:

根据 Chrome 功能状态页面显示,截至 2019 年 5 月,Web 蓝牙扫描功能完全没有实现。这使得无法扫描信标https://github.com/WebBluetoothCG/web-bluetooth/blob/master/implementation-status.md#scanning-api

还有其他实现的 API 可以让您找到并连接到蓝牙设备,但由于您无法查看和解码广告(上述未实现的 API 将提供的功能),因此您无法将它们用作信标。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-12-30
    • 2021-09-04
    • 2017-05-04
    相关资源
    最近更新 更多