In iOS 8 SDK,
Needs to add NSLocationAlwaysUsageDescription or NSLocationWhenInUseUsageDescription key in
Info.plist with a message to be displayed in the prompt. Adding these solved my problem.
Also,
requestAlwaysAuthorization (for background location) or requestWhenInUseAuthorization (location only when foreground) call on CLLocationManager is needed before starting location updates.
i.e.
[locationmanager requestWhenInUseAuthorization];
or
[locationmanager requestAlwaysAuthorization];
Thanks,
Girijesh
#xcode #iOS8 #iPhone
No comments:
Post a Comment