microg / UnifiedNlp

Alternative network location provider for Android, with plugin interface to easily integrate third-party location providers.
944 stars 207 forks source link

Location backend permissions and issues #224

Open kord1e opened 2 years ago

kord1e commented 2 years ago

Question 1: Basically there are four possible options for location permission for apps:

Do the NLP location backends require "always allow" to work, or is it enough to give them "allow only when using the app"? I'm having similar problems as #198 when I use the "My Location" app from F-droid - only few if any backends are showing any location despite being enabled and configured. GPS still works... but getting a lock might take time.

If "always allow" is required, it would be useful if microG hinted the user to give this permission. Not all backends ask for it automatically.

Question 2: What actually happens/should happen when a backend is disabled in microG settings? I disabled one backend (Wifi location service) but when I use the "My Location" app, it may still show location from this backend, and a location request from this backend is also logged in permissions settings.

Question 3: My Location app shows three categories: GPS, Network and UnifiedNLP Backends. What is "Network" backend here?

Question 4: When location is disabled from phone settings (e.g. by clicking the location button in the top bar in the main screen), does this also disable all UnifiedNLP backends? If an app asks for location, what does it get?

System information: Using LineageOS 18.1 for microG, last updated 7th of October. I have the following backends installed:

y0va commented 2 years ago

Question 2: What actually happens/should happen when a backend is disabled in microG settings? I disabled one backend (Wifi location service) but when I use the "My Location" app, it may still show location from this backend, and a location request from this backend is also logged in permissions settings.

Same here. Deactivating at least the apple backend seems not to work.

Question 3: My Location app shows three categories: GPS, Network and UnifiedNLP Backends. What is "Network" backend here?

I guess thats based on geo ip infos.