How can I get the CLLocationManager delegate methods, when the app gone into background,
I am new to CLLocationManager
Actually my app gets called CLLocationmanager dalegate methods when the app is running in the foreground but when the app goes into the background those are not called.
By using
[locationManager startMonitoringForRegion:region desiredAccuracy:kCLLocationAccuracyBest];
method my app get called these methods
- (void)locationManager:(CLLocationManager *)manager didEnterRegion:(CLRegion *)region {
NSLog(@"Entered Region");
}
- (void)locationManager:(CLLocationManager *)manager didExitRegion:(CLRegion *)region {
NSLog(@"Exited Region");
}
How can I use the CLLocationmanagerdelegate
in the appDelegate
class?