Ahmed Said
Ahmed Said

Reputation: 1315

iOS get current location using GPS device

I want to use CLLocationManager to get the current user location using GPS antenna, not the cellular network. How can I ensure that?

Upvotes: 0

Views: 2312

Answers (1)

Rob
Rob

Reputation: 438212

Your choices is either the standard location service (e.g. startUpdatingLocation, for which you can specify the desiredAccuracy), or the low-power significant change service (e.g., startMonitoringSignificantLocationChanges). But you generally don't specify location services based upon hardware, but rather on the basis of your app's functional needs. Use the standard service if you need an accurate location, and try using the significant change service if you don't need the same level of precision.

See the Location Awareness Guide for more information.

Upvotes: 1

Related Questions