[英]Monitoring ALL available beacon regions using CLLocationManager
At the moment i'm doing something like the following to start getting range updates for a beacon: 目前我正在做类似以下的事情来开始获取信标的范围更新:
NSUUID *uuid = [[NSUUID alloc] initWithUUIDString:@"bec26202-a8d8-4a94-80fc-9ac1de37daa6"];
self.beaconRegion = [[CLBeaconRegion alloc] initWithProximityUUID:uuid identifier:@"com.bla.bla"];
[self.locationManager startMonitoringForRegion:self.beaconRegion];
which is working great. 这工作得很好。 but i'm wondering if there is a way to get the uuids of all beacon regions in range, and do ranging on them all, rather than me specifying the uuid.
但我想知道是否有办法让所有信标区域的uuids在范围内,并对它们进行测距,而不是我指定uuid。
i guess this would be possible using CoreBluetooth, manually checking the advertised services in range etc? 我想这可以使用CoreBluetooth,手动检查范围内的广告服务等? but it would be quite complicated, nicer if CoreLocation can do it somehow.
但是如果CoreLocation可以以某种方式做到这一点,那将会非常复杂。
You can't, because that's not how you are supposed to use beacons. 你不能,因为那不是你应该如何使用信标。 You are supposed to write an app that reacts to the beacons that you know about.
您应该编写一个对您了解的信标做出反应的应用程序。 So if I take my phone with your app running into a store or a museum full with beacons that you don't know about, nothing should happen.
因此,如果我带着你的应用程序将我的手机带入一个商店或一个充满了你不知道的信标的博物馆,那么什么都不应该发生。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.