現在使用しているアプリで
self.locationManager = [[CLLocationManager alloc] init];
if ([_locationManager respondsToSelector:@selector(requestAlwaysAuthorization)])/
[_locationManager requestAlwaysAuthorization];
//self.locationManager.allowsBackgroundLocationUpdates = YES;
self.locationManager.delegate = self;
[self.locationManager startMonitoringForRegion:tempRegio
[self.locationManager startRangingBeaconsInRegion:beaconRegion];
この場合、ユーザーの場所を知る必要はありませんが、このアプリを使用していない場合でも、アプリは現在の場所を使用するように求めます
これはエンド ユーザーにとって煩わしく、アプリが GPS を使用していることを示す紫の矢印が常にステータス バーに表示されます (これは使用されません)。
私の質問は
CLLocationManagerを使用せずにビーコンをスキャンできるメカニズムはありますか
考えられる解決策の 1 つは CBCentralManager を使用することですが、それを使用してビーコン/ibeacon を検出する適切な方法が見つかりません。
ありがとう