home-assistant / home-assistant/android

Dashboard traffic, when app in background.

Open
#979 118 comments 12 reactions 0 assignees View on GitHub
bug webview
Dominant language
Kotlin
Stars
3.9k
Forks
1.1k
Avg merge
1d 12h
Merged PRs (30d)
81

Description

**Home Assistant Android version:**
2.4.1-full

**Android version:**
10
**Phone model:**
Xiaomi mi 9
**Home Assistant version:**
0.115.3
**Last working Home Assistant release (if known):**
no
**Description of problem:**

When app in background, video streams from cameras does not stop stream. Almost all apps stops video stream at onPause() Android lifecycle, but HA does not. Now the problem is even more serious, because from the activities of the sensors, the system almost never kills the application. I have a lot of cameras and I wasted 70 gigabytes in a month because of this bug. Plus the battery runs out quickly.
**Traceback (if applicable):**

**Screenshot of problem:**
![Screenshot_2020-09-25-18-25-18-432_com miui securitycenter](https://user-images.githubusercontent.com/569343/94288159-c75da300-ff5f-11ea-87c5-c39e0c9ed4b8.jpg)

**Additional information:**
Solution: You should stop stream, when device goes onStop(), maybe communicate with HA server, and show video placeholder.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.