android / location-samples

Multiple samples showing the best practices in location APIs on Android.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LocationUpdatesBackgroundKotlin not works, sometimes

vsevjednom-cz opened this issue · comments

I'm creating GPS tracking application according to your example (something like Strava or Sports Tracker). I tried your app first without changes. It not works sometimes when I go out and tap to start. Neither in the background nor in the foreground. GPS icon at my mobile dissapears after tens of seconds (when mobile "sleeps"). All permissions are ok.

But sometime it works when I've got mobile phone connected to my PC in home (by the window). I'm using Android studio, of course.

Android 9.1.0

Can you help me what to focus on?