aherlambang
aherlambang

Reputation: 14418

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?

Upvotes: 3

Views: 1819

Answers (1)

Joe
Joe

Reputation: 57179

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.

Upvotes: 3

Related Questions