Is it possible to determine programmatically that a user has denied permission to use their location?
Secondly, if a user has denied permission, is it possible to re-prompt the user?
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.
You can determine your authorization status using the
authorizationStatusclass method onCLLocationManager. This returns aCLAuthorizationStatuswhich is defined as:The system will prompt the user to authorize your application if the authorization status is undetermined when you attempt to start the location manager.
Additionally, you can check the
locationServicesEnabledclass method to determine if location is enabled system wide.