android / location-samples

Multiple samples showing the best practices in location APIs on Android.
Apache License 2.0
2.7k stars 2.77k forks source link

LocationUpdatesService - stops after 1 hour #289

Open juhics opened 2 years ago

juhics commented 2 years ago

Hello!

I started the LocationUpdatesService on a Samsung A40 and a Xiaomi Note 7. I turned off battery saving on the phone.

The phones did not move. There were no location changes. The program did nothing after an hour. Did not move LocationUpdatesService.

But when I woke up the phone, immediately LocationUpdatesService worked again.

Why is this? If the phone is not moving, why is LocationUpdatesService working?

Or is this normal?

Translated with www.DeepL.com/Translator (free version)