WorkManager jobs are continuously running in the foreground leading battery drain and increased temps
See original GitHub issueHome Assistant Android version: 2021.10.0-full (versionCode=761)
Android version: 12
Phone model: Pixel 6 Pro
Home Assistant version:
Description of problem:
There seems to be a bug causing WorkManager requests to be scheduled and cancelled very quickly in a short period of time. Particularly requests that are likely using setForegroundAsync
causing a foreground service to run consuming more battery and/or causing heat. I do not have specific steps to reproduce, but some of the reviews in the play-store are mentioning heavy background usage which is likely related.
Traceback (if applicable, to get the logs you may refer to: https://companion.home-assistant.io/docs/troubleshooting/faqs/#android-crash-logs):
Please feel free to reach out to me directly to review some private logs.
Screenshot of problem:
Additional information:
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (4 by maintainers)
Top GitHub Comments
Thanks @dshokouhi , When you have a chance, could you please ping me at first.last@ gee mail dot com ? (name info here: https://github.com/vad710)
Thank you!
Thats the aim for these 2 PRs actually 😃
#2037 and #2038