Even my application is registering for location updates in the background.
In my code:
self.locationManager.desiredAccuracy = kCLLocationAccuracyThreeKilometers; self.locationManager.distanceFilter = 2500;
And I didn’t move anywhere. So, after exactly 15 minutes in the console log, I received this message “The location icon should now be in the“ Inactive ”state . From now on, my application does not work in the background.
This only happens on the iPhone 5.
@updated
Here is my code
self.locationManager = [[CLLocationManager alloc] init]; self.locationManager.delegate = self; [self.locationManager setPurpose:@"Enable Location service for \"My App\" to track your"]; self.locationManager.desiredAccuracy = kCLLocationAccuracyThreeKilometers; self.locationManager.distanceFilter = 2500; [self.locationManager startUpdatingLocation];
ios objective-c core-location cllocationmanager
Bhumeshwer katre
source share