I have
NSLocationWhenInUseUsageDescription
and
NSLocationAlwaysUsageDescription
defined in my Info.plist.
In my code I do
if ([_locationManager respondsToSelector:@selector(requestWhenInUseAuthorization)]) {
[_locationManager requestWhenInUseAuthorization];
}
[_locationManager startUpdatingLocation];
And I don't get prompted on iOS8.
I did a clean reinstall in my simulator. On iOS7 without the 3 if block I get prompted.
Right after startUpdatingLocation I check [CLLocationManager authorizationStatus]
which is 0- kCLAuthorizationStatusNotDetermined
How do I prompt iOS8 users?