My app that worked fine on iOS 7 doesn\'t work with the iOS 8 SDK.
CLLocationManager
doesn\'t return a location, and I don\'t see my app under
Before [locationManager startUpdatingLocation];
, add an iOS8 location services request:
if([locationManager respondsToSelector:@selector(requestAlwaysAuthorization)])
[locationManager requestAlwaysAuthorization];
Edit your app's Info.plist
and add key NSLocationAlwaysUsageDescription
with the string value that will be displayed to the user (for example, We do our best to preserve your battery life.
)
If your app needs location services only while the app is open, replace:
requestAlwaysAuthorization
with requestWhenInUseAuthorization
and
NSLocationAlwaysUsageDescription
with NSLocationWhenInUseUsageDescription
.