location-samples icon indicating copy to clipboard operation
location-samples copied to clipboard

Android Foreground Location updates lat/lngs after 5 mins when the screen is locked?

Open nofal-barefoot opened this issue 7 years ago • 3 comments

I have cloned and ran your foreground sample it works perfectly when the is in foreground and even so when it is in background but as long as the screen is ON as soon as the screen goes off the location which is setted with 500ms intervals, returns lat/lng after 5 mins is this behavior default? can it be altered? if yes then how ? Thanks urgent reply required

nofal-barefoot avatar Jan 17 '18 07:01 nofal-barefoot

Hi! I have the same problem, have you managed to fix it?

Javierd avatar Jan 21 '18 16:01 Javierd

@Javierd No brother, nothing yet !, have you? Also when you put the screen lock and test location logs the speed 95% of the time returns 0.0 and as soon as you turn ON the screen then it gives a more realistic speed! Please some body tell us about the fix Thanks

nofal-barefoot avatar Jan 22 '18 07:01 nofal-barefoot

hi, i have the same issue on huawei Android 10, did anyone found a solution for this?

salahhammouda avatar Oct 24 '20 15:10 salahhammouda