Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

force core location to use gps

I read somewhere in apple documentation that I need to edit the plist to indicate that my app would require a GPS, I can't find this document anymore. I am building a somewhat navigation apps, and I would like to have startUpdatingLocation to use the location from the GPS. How can I do this?

like image 806
aherlambang Avatar asked Dec 06 '25 02:12

aherlambang


1 Answers

This will limit your application to only being able to run on devices with GPS.

Build-Time Configuration Details

gps is a value of UIRequiredDeviceCapabilities in your plist.

gps

Include this key if your application requires (or specifically prohibits) the presence of GPS (or AGPS) hardware when tracking locations. (You should include this key only if you need the higher accuracy offered by GPS hardware.) If you include this key, you should also include the location-services key. You should require GPS only if your application needs location data more accurate than the cell or Wi-fi radios might otherwise provide.

like image 124
Joe Avatar answered Dec 08 '25 16:12

Joe



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!