Home > DeveloperSection > Forums > Location Services not working in iOS 8
ben reitman
ben reitman

Total Post:96

Points:676
Posted on    April-27-2015 1:18 AM

 iPhone iPhone  Ios 
Ratings:


 1 Reply(s)
 495  View(s)
Rate this:

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 Settings -> Location Services either. I did a Google search on the issue, but nothing came up. What could be wrong?



Mayank Tripathi
Mayank Tripathi

Total Post:397

Points:3117
Supported
Posted on    April-27-2015 4:18 AM

Apparently in iOS 8 SDK, requestAlwaysAuthorization (for background location) or requestWhenInUseAuthorization (location only when foreground) call on CLLocationManager is needed before starting location updates.

There also needs to be NSLocationAlwaysUsageDescription or NSLocationWhenInUseUsageDescription key in Info.plist with a message to be displayed in the prompt. 

Modified On Apr-27-2015 04:20:57 AM

Don't want to miss updates? Please click the below button!

Follow MindStick