Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ACCESS_COARSE_LOCATION permission #37

Open
ghost opened this issue Jun 7, 2019 · 3 comments
Open

ACCESS_COARSE_LOCATION permission #37

ghost opened this issue Jun 7, 2019 · 3 comments

Comments

@ghost
Copy link

ghost commented Jun 7, 2019

Hi. Could you add the permission "ACCESS_COARSE_LOCATION" (not only the GPS, even the network)?

@tranquvis
Copy link
Owner

As i know, with ACCESS_FINE_LOCATION you are able to access GPS as well as the network.
In other words, ACCESS_FINE_LOCATION automatically implies ACCESS_COARSE_LOCATION.

From the android documentation:

You only need to request one of the Android location permissions, depending on the level of accuracy you need: ...

@ghost
Copy link
Author

ghost commented Jul 9, 2019

I don't know, but I tried to get my position using Simple sms remote and Sophos Mobile Security in two ways:

  1. away from home
  2. inside the house

In the first case, both apps returned my position, while in the second case, only Sophos did.

I checked, and Sophos has both permissions and hence the request for your app ..

@tranquvis
Copy link
Owner

I just did some more research, which confirmed my initial description. ACCESS_COARSE_LOCATION should not have an effect. Maybe other apps request ACCESS_COARSE_LOCATION if you don't grant ACCESS_FINE_LOCATION.

But it could be that my location request algorithm is improvable.
Maybe we should change the Criteria in LocationUtils.RequestNewLocation.
This needs some tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant