question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Websockets notifications is killing my battery

See original GitHub issue

Home Assistant Android version: Beta-2000-2e0700f7-full Android version: 12 Phone model: S21 ultra Home Assistant version: 02.2022 Last working Home Assistant release (if known):

Description of problem: The last beta install drains my phone battery. Traceback (if applicable, to get the logs you may refer to: https://companion.home-assistant.io/docs/troubleshooting/faqs/#android-crash-logs):


Screenshot of problem:

Additional information:

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:11 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
dshokouhicommented, Feb 4, 2022

Yes Never will turn it off. We do have a change in our detection of the screen being off in the latest beta that will be in the play store on Saturday. Please give it a try then and also keep in mind that it is expected to have some battery drain with this feature, more drain if you set it to always. FWIW on my pixel 6 pro I keep it on Always and I do not see massive drain.

can you also share a screenshot of the battery usage graph so we can see how much time was used by the app?

0reactions
dshokouhicommented, Feb 11, 2022

Closing as this should be fixed in the latest release

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why do push app notifications drain battery life quickly? - Quora
It doesn't affect the battery life directly by having the notifications turned on, but it does receiving a push notification, so it depends...
Read more >
Is websocket connectivity as default maintained without ...
Thanks, yes, I am already using push notifications by sending a flag to my server when the app goes background, But as I...
Read more >
Battery Impact: Idle vs Busy Websocket on iOS [closed]
My question is whether the battery drain from that one socket will be significantly different if that websocket is streaming data consistently, ...
Read more >
Battery Drain, Push Notifications Cellula… - Apple Community
I turned off wifi and disabled cellular data use for a number of apps. Battery still drains 100% to 50% in 7 hours...
Read more >
Why your Android battery is draining fast and how to fix it
Why is my Android phone dying so fast? · There are too many push notifications and alerts draining the battery. · There are...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found