microg / GmsCore

Free implementation of Play Services
https://microg.org
Apache License 2.0
8.4k stars 1.7k forks source link

Location Services is not correct in weather apps and web browser searches #2226

Open ToughDBlue opened 7 months ago

ToughDBlue commented 7 months ago

Describe the bug Location Services says I'm up to a hundred miles away in weather apps and web browser. Maps apps are always correct.

To Reproduce Steps to reproduce the behavior:

  1. Go to any weather app set to current location and it is incorrect by up to one hundred miles.
  2. Go to any maps app and the location is correct.

Expected behavior When opening any weather app it should show an accurate location just like the maps app. When opening a web browser and searching for a specific place near me it shows me in the same location as the weather app does.

Screenshots If applicable, add screenshots to help explain your problem.

System Android Version: 13 and 14 Custom ROM: /e/ OS T any version and LineageOS 21 Pixel 7 (Panther)

Additional context This issue also happens on my wife's phone as well. (OnePlus 7T hotdogb) I have tried multiple combinations of changing the microG Wi-Fi location and Mobile network location settings and nothing fixed it. This issue also happens whether I'm on Wi-Fi or Mobile network.

ToughDBlue commented 7 months ago

This issue was also happening on my wife's phone (OnePlus 7T hotdogb) with /e/ OS T (Android 13) which uses the latest version of microG 0.3.0.233515. However, today I installed LineageOS for microG 21 and her phone doesn't have this issue anymore. The difference is that LOS for microG uses microG 0.2.27.223616. When LOS for microG 21 is released for my Pixel 7 (Panther) I will install it as well and post back.

GutHib commented 6 months ago

I have similar issues. After update from microG 0.2.27 to the most recent version GPS got stuck in a place +100km away. Upon rolling back to 0.2.27 GPS was fine again immediately, but now FakeStore keeps crashing, so I'm stuck between a rock and a hard place.

Sapiosenses commented 6 months ago

Disable all of the items in the location menu labeled "Mozilla", restart the device and see how it is then.

Keep in mind that GPS requires a clear view of the sky in order to work properly.

Geolocation via non-GPS sources is a work in progress at this point for versions >0.2.27.xxxxxx

unknownankit commented 3 months ago

Under microG settings > Locations > (3-dots on top right) > Configure Service URL.

Try changing the default Mozilla URL to https://api.positon.xyz/?key=74600654-2aec-11ef-aa95-3b7218da6865

Source: Marvin's comment:- https://github.com/microg/GmsCore/issues/2237#issuecomment-2169193229

Also, keep the "Request from Mozilla" in both Network and Wifi location, "Request from Hotspot" under Wifi location and "Address resolver" Enabled.