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 not using GPS at all #230

Open BentiGorlich opened 2 years ago

BentiGorlich commented 2 years ago

Describe the bug When I disable all location backends (I have Mozilla Location Service and Nominatim installed), I never get a location at all. I wondered why it was taking it so long (about 2 minutes) to get my location and then it was just absolutely inaccurate (like 100m off, which is just not usable), so I tried disabling all location modules. As far as i understand it should then use only GPS. In another issue from October 2018 it was asked if the location accuracy is set to high, but I don't have such a setting: Screenshot_20211229-172721_Einstellungen And I couldn't find anything that was just a switch to turn GPS on or off Whats strange: on the "recent location queries" only ever appears microg Services Core.

System Android Version: 11 Custom ROM: Lineage OS 18.1, LineageOS for microG Device: Moto G7 Plus (lake)

ghost commented 2 years ago

I have the exact same issue on my LineageOS for microG installation. I don't see a high accuracy option either. The issue is absolutely identical.

System Android Version: 10 Custom ROM: Lineage OS 17.1, LineageOS for microG Device: Xiaomi Redmi Note 8 (ginkgo)

gdt commented 2 years ago

NLP is for network only. The choice of GPS (GNSS) vs network is outside microg. Android used to have a setting that was basically GPS only, network only, or GPS and network both. I can't find that in CalyxOS-android11.

It sounds like your problem is with GPS, not with microg. I would recommend installing GPSTest and MyLocation, both from f-droid, and run them both to try to understand what is going on.

With OSMAnd, which can use both network location and precise location, what I observe is that while network location is sometimes available first, GPS shows up pretty fast and then is used. Network location is generally not good enough for navigation, in my experience.

ghost commented 2 years ago

You are right, I made a mistake. NLP is network. Both apps you suggeated get gps coordinates without any problem. In LineageOS there is an indicator what apps currently use gps and the two apps you suggested appear but other apps that can't get GPS appear together with microg services corr which suggests these apps relie on google play services for location. These are the apps that can't get gps location but don't have any problems with other forms of location. This suggests it is a microg issue but it may be an issue of GmsCore which would then mean to move this issue to the other repo. -------- Original Message -------- On 26 Jan 2022, 19:32, Greg Troxel - notifications at github.com < @.***> wrote:

NLP is for network only. The choice of GPS (GNSS) vs network is outside microg. Android used to have a setting that was basically GPS only, network only, or GPS and network both. I can't find that in CalyxOS-android11.

It sounds like your problem is with GPS, not with microg. I would recommend installing GPSTest and MyLocation, both from f-droid, and run them both to try to understand what is going on.

With OSMAnd, which can use both network location and precise location, what I observe is that while network location is sometimes available first, GPS shows up pretty fast and then is used. Network location is generally not good enough for navigation, in my experience.

— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you commented.AV2NQFKOHXFYRYAXQW4YNFDUYA42TA5CNFSM5K6HTZUKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOHTY4MYY.gifMessage ID: @.***>

BentiGorlich commented 2 years ago

I agree. I just tried GPSTest and it obviously gets connection to satellites, although it took ~5 minutes to get my location. So the problem then is not the GPS. Maybe it just takes a good while and when I tried it last time I didn't have the patience. That opens another question for me. When I am in OSMand for example and it has the GPS permission "while I am using the app", can it search for GPS when I lock my phone? In the past I thought it couldn't, but now I am not sure, because there is no setting to give it the permission to always search for GPS.

But if an app uses the PlayService to get the location, it should be able to get a GPS based location, so that is an issue with microG in my opinion