My app doesn't need precise location, just a city is sufficient for it. When I request location authorization, how can I make Precise: Off
by default?
I tried settings the design accuracy for CLLocationManager
to kCLLocationAccuracyReduced
, but it still asks with Precise: On
by default. Is there a way to do this?
You need to specify the key NSLocationDefaultAccuracyReduced
with a value of true
in your info.plist
file. When you do this the user is prompted for their approximate location and no precise on/off pill is shown.
Note that this key shows as Privacy - Location Default Accuracy Reduced in Xcode's Plist editor
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