clcircularregion

iOS 8 CLLocationManager enterRegion: not getting called if use requestWhenInUseAuthorization

怎甘沉沦 提交于 2019-12-02 04:23:41
问题 I'm trying to get being called the delegate method locationManager:didEnterRegion in iOS 8 for custom region. Here is the code: self.locationManager = [[CLLocationManager alloc] init]; self.locationManager.delegate = self; if ([self.locationManager respondsToSelector:@selector(requestWhenInUseAuthorization)]) { [self.locationManager requestWhenInUseAuthorization]; } CLCircularRegion *region = [[CLCircularRegion alloc] initWithCenter:CLLocationCoordinate2DMake(20, 20) radius:1000 identifier:@

iOS 8 CLLocationManager enterRegion: not getting called if use requestWhenInUseAuthorization

余生颓废 提交于 2019-12-02 02:03:18
I'm trying to get being called the delegate method locationManager:didEnterRegion in iOS 8 for custom region. Here is the code: self.locationManager = [[CLLocationManager alloc] init]; self.locationManager.delegate = self; if ([self.locationManager respondsToSelector:@selector(requestWhenInUseAuthorization)]) { [self.locationManager requestWhenInUseAuthorization]; } CLCircularRegion *region = [[CLCircularRegion alloc] initWithCenter:CLLocationCoordinate2DMake(20, 20) radius:1000 identifier:@"asda"]; region.notifyOnEntry = YES; region.notifyOnExit = YES; [self.locationManager

Need to get more than 20 notification for Region Monitoring

点点圈 提交于 2019-11-30 16:26:20
I'm developing an application where user can set multiple locations. I get succeed to show notifications when user get Enter or Leave specific location boundary. Now, there is situation that i need to provide monitoring for all saved locations and it can be hundreds and more. I've read in Apple Forum and many where that iOS devices allow only 20 Region Monitoring. I've develop my code to exceed this situation. I've set locationManager.distanceFilter = 200; and when i get update for location. Firstly, i've stop all Region Monitoring and by conditions for nearest locations and again start Region

Need to get more than 20 notification for Region Monitoring

大兔子大兔子 提交于 2019-11-30 16:08:42
问题 I'm developing an application where user can set multiple locations. I get succeed to show notifications when user get Enter or Leave specific location boundary. Now, there is situation that i need to provide monitoring for all saved locations and it can be hundreds and more. I've read in Apple Forum and many where that iOS devices allow only 20 Region Monitoring. I've develop my code to exceed this situation. I've set locationManager.distanceFilter = 200; and when i get update for location.