organicmaps: Location detection doesn't work on Fdroid

It is not clear yet if it works with Google Play services or not.

Google Pixel 2 XL, Android 12

After (non-cold) OM restarting (in location disabled state) and tapping the location button, nothing happens. Logs show that location service was stopped:

01-02 16:51:55.756 (main) D/LocationHelper: onTransit(): Location updates are stopped by the user manually, so skip provider start until the user starts it manually.
01-02 16:51:56.580 (main) D/LocationHelper: start():
01-02 16:51:56.593 (main) D/LocationHelper: calcLocationUpdatesInterval(): mode = 1 interval = 3000
01-02 16:51:56.594 (main) I/LocationHelper: start(): provider = AndroidNativeProvider mInFirstRun = false oldInterval = 0 interval = 3000
01-02 16:51:56.594 (main) D/AndroidNativeProvider: start():
01-02 16:51:56.597 (main) D/AndroidNativeProvider: start(): Request Android native provider 'fused' to get locations at this interval = 3000 ms
01-02 16:51:56.604 (main) D/MwmActivity: onMyPositionModeChanged(): location newMode = 0
01-02 16:52:56.618 (main) D/LocationHelper: onLocationPendingTimeout():  permissions = true settings = true
01-02 16:53:04.491 (main) W/LocationHelper: lambda$onLocationPendingTimeout$4(): Disabled by user
01-02 16:53:04.493 (main) D/LocationHelper: stop():
01-02 16:53:04.493 (main) D/AndroidNativeProvider: stop():
01-02 16:53:04.513 (main) D/MwmActivity: onMyPositionModeChanged(): location newMode = 1
01-02 16:53:12.459 (main) D/AppBackgroundTracker: onActivityPaused(): onActivityPaused activity = app.organicmaps.MwmActivity@7276c7d

https://user-images.githubusercontent.com/170263/211139196-cfd8e1df-8ce7-4c4d-90fe-a1a1d660d558.mp4

logs.zip

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Reactions: 1
  • Comments: 23 (19 by maintainers)

Commits related to this issue

Most upvoted comments

@rtsisyk you’re missing an important point: the system “location is searched/active” indicator is not visible when OM is “looking” for location, while other apps show it correctly.

@rtsisyk how can your hypothesis explain that location is properly detected in other apps?

I am experiencing a similar issue with the F-Droid release: https://github.com/organicmaps/organicmaps/issues/4540.