I’m developping my first iOS app, and this uses the user’s location.
I know that the device asks the user whether to enable location services for the app, but how do I know if the user has enable it or not?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Probably
should be the answer
releated SO questions are:
Checking for iOS Location Services
locationServicesEnabled test passes when they are disabled in viewDidLoad
and yes, according to @albertamg suggestion, if you implement CLLocationManagerDelegate protocol
you will be notified if user deny access to Location Services when you’re requesting it
see
locationManager:didChangeAuthorizationStatus:andlocationManager:didFailWithError:methods