How can i do a network provider location ?
j2emanue opened this issue · 4 comments
I dont see how i can make your api do network provider. i just need COARSE location not FINE location. i am using
setPriority(LocationRequest.PRIORITY_BALANCED_POWER_ACCURACY)
but i'd rather use coarse location or have it as an option, is there no way ?
The library does not request any permission, it's up to you to request the permission.
thats not what i was asking actually. thanks for the reply. there are 3 types of providers: passive provider, network provider and gps provider. i am asking if i want a network provided location, how do i do that ?
As far as I know this is not possible when using the fused location provider API (which is the only API supported by this library). This API abstracts the providers away and only provides a (simpler) setPriority(…)
method.
See also here:
Location requests from applications with ACCESS_COARSE_LOCATION and not ACCESS_FINE_LOCATION will be automatically throttled to a slower interval, and the location object will be obfuscated to only show a coarse level of accuracy.