【问题标题】:iOS - how to detect all beacons around without using UUIDiOS - 如何在不使用 UUID 的情况下检测周围的所有信标
【发布时间】:2019-10-04 06:16:13
【问题描述】:

我正在研究 iBeacons。试图找出我周围的所有信标。

与 Android 一样,在 iOS 中,如果在搜索时不指定“UUID”,我们就无法实现这一点。 通过使用 UUID,它可以正常工作。

有没有更好的解决方案来搜索你周围的所有信标,而不指定 UUID?

我找到了一个解决方案 RNLBeaconScanner,它在 objective c 中。 RNLBeaconScanner 在 ObjC 中检测到信标,但在 swift 中没有检测到相同的信标

提前致谢!

【问题讨论】:

    标签: ios swift ibeacon region-ranging


    【解决方案1】:

    TLDR;你不能。

    更长的答案: 如果您专门使用 iBeacons,您需要知道他们的 UUIDs,才能将有效的 CLBeaconIdentityConstraint 传递给 startRangingBeaconsCLLocationManager 方法。

    Core Bluetooth,可以用于一般的BLE扫描,不幸的是cannot be used to detect iBeacons,因为,好吧,apple doesn't want you to

    【讨论】:

      猜你喜欢
      • 2018-09-29
      • 2020-12-26
      • 2016-09-06
      • 1970-01-01
      • 2016-05-12
      • 2015-01-06
      • 1970-01-01
      • 2014-12-23
      • 2018-09-03
      相关资源
      最近更新 更多