Agontuk / react-native-geolocation-service

React native geolocation service for iOS and android
https://www.npmjs.com/package/react-native-geolocation-service
MIT License
1.61k stars 291 forks source link

Feature request: iOS specifically ask for precise or non-precise location #228

Closed helloagain-dev closed 3 years ago

helloagain-dev commented 3 years ago

As far as I can see, the enableHighAccuracy prop, has no effect on the precise location, since in both cases enabledHighAccuracy results in either:

which both require precise location.

Since Apple now introduced a new App Privacy section, it would be good to be able to choose in getCurrentPosition if the app should only ask for precise or not precise location, in order to keep the permission to ask for to a minimum.

Agontuk commented 3 years ago

A new property accuracy is introduced in the recent version. I'll also add support for reduced value which will use kCLLocationAccuracyReduced .

Agontuk commented 3 years ago

v5.2.0 has been published with reduced as an accuracy option.