简体   繁体   English

使用CLLocationManager监视所有可用的信标区域

[英]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.

相关问题 在iOS中使用CLLocationmanager监视20多个BLE信标区域 - Monitoring for more than 20 BLE beacon regions using CLLocationmanager in iOS CLLocationManager不监视区域 - CLLocationManager not monitoring regions 信标区域监控应用 CLLocationManager 的生命周期 - Lifecycle of CLLocationManager for a beacon region monitoring app 区域监控背景中的信标区域不工作 - Region monitoring beacon regions in background not working CLLocationManager-监视区域与重要位置更改 - CLLocationManager - Monitoring regions vs. Significant Location Changes 当CLLocationManager开始监视区域时,如何确定用户是否已在区域内 - How to determine if user is already within region when CLLocationManager begins monitoring regions 监控多个信标区域不起作用,开发人员已经说过可能吗? 思考? (见我的代码) - Monitoring multiple beacon regions is not working yet developers have said it's possible? Thoughts? (See my code) 在iOS上,地理和信标监视区域是否总计20个区域限制? - Does the geographical and beacon monitoring region add up for the 20 regions limit on iOS? CLLocationManager +监视CLBeaconRegion - CLLocationManager + monitoring for CLBeaconRegion 背景iOS中的信标监控 - Beacon monitoring in background iOS
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM