I'm working with CLLocationManagerDelegate in my static library when i run on iOS 7 device everything works perfectly but when i test it on another device with iOS 8.1.3 the delegate methods aren't getting called. i made a strong property @property (nonatomic, strong) CLLocationManager locationManager i've also added the appropriate key and string value (NSLocationAlwaysUsageDescription, requestAlwaysAuthorization) in the info.plist and this is my instance
self.locationManager = [[CLLocationManager alloc] init];
[self.locationManager setDelegate:self];
self.locationManager.distanceFilter = kCLDistanceFilterNone;
self.locationManager.desiredAccuracy = kCLLocationAccuracyBest;
[self.locationManager startUpdatingLocation];
[self.locationManager requestWhenInUseAuthorization];
[self.locationManager requestAlwaysAuthorization];
if([self.locationManager respondsToSelector:@selector(requestAlwaysAuthorization)]) {
}
[self.locationManager startUpdatingLocation];
please help me to find out why delegate methods are not getting called !! why I'm not getting location updates??