android / codelab-while-in-use-location

Codelab:
https://github.com/googlecodelabs/while-in-use-location
Apache License 2.0
82 stars 51 forks source link

Location service disconnects after a while #23

Open gonzaf21 opened 3 years ago

gonzaf21 commented 3 years ago

Hi, my team is having problems in a custom app that was created after this project. The location service starts correctly and after a while(can be minutes or hours) the service stops itself and the location is no longer received. I wanted to know if there is some way that we can prevent the service from stopping (I tried with wake locks already and changing certain app settings of the device like battery optimization and more...). Thanks in advance.

capsi4 commented 3 years ago

I have the same problem. Have you found a solution?