Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Request location with precise off as default

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?

like image 571
TruMan1 Avatar asked Oct 12 '25 00:10

TruMan1


1 Answers

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

enter image description here

like image 106
Paulw11 Avatar answered Oct 14 '25 19:10

Paulw11