I'm calling -[CLLocationManager requestWhenInUseAuthorization] on the main thread. I've set my delegate, and I supplied a value in info.plist for the NSLocationWhenInUseUsageDescription key.
The dialog asking the user for access shows appropriately, but when the user taps "Allow" or "Disallow", the delegate method -[locationManager:didChangeAuthorizationStatus:] isn't being called.
I'm on iOS 8, so it could be a bug...but it seems like too big a bug to go unnoticed. Any ideas what's going on?
Thanks.
Make sure you have a strong reference to the CLLocationManager object. I was having a similar issue and I realized that I never created a property for it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With