I am using following code to update location - it works fine below iOS 9 but in iOS 9 getting error -
locationManager = [[CLLocationManager alloc] init];
[locationManager setDelegate:self];
[locationManager setDistanceFilter:kCLDistanceFilterNone];
[locationManager setDesiredAccuracy:kCLLocationAccuracyHundredMeters];
if ([locationManager respondsToSelector:@selector(requestWhenInUseAuthorization)])
[locationManager requestWhenInUseAuthorization];
// tried this also -
/* if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 9) {
locationManager.allowsBackgroundLocationUpdates = YES;}*/
[locationManager requestLocation];
didFailWithError: Error Domain=kCLErrorDomain Code=0 "(null)"
Also done change in plist
file -
Anyone can suggest what I am missing ?