0

Just a quick question here.

I am displaying the the alert for the user to allow the app to access location data, and I have this triggered from a switch.

When the user turns the switch on, the alert will be displayed.

If the user clicks disallow, is there a time restriction that Apple has before you can show that alert again?

Thanks in advance!

julianwyz
  • 3,104
  • 1
  • 29
  • 34
  • Short answer is "no" but I suspect what you really want to know is how to show it again if the user has disallowed it. Correct? – BSMP Jun 23 '15 at 14:42
  • possible duplicate of [How to prompt user to turn on Location Services...again](http://stackoverflow.com/questions/5998465/how-to-prompt-user-to-turn-on-location-services-again) – BSMP Jun 23 '15 at 17:10

1 Answers1

1

Once the user chooses not to give your app permission to access their location data, the user will not be able to grant your app that permission from within your app. Instead, the user must enter the Settings app and grant the permission from there. This is to prevent the app from bombarding the user with requests to use location data.

ndmeiri
  • 4,979
  • 12
  • 37
  • 45