element-hq / element-hq/element-android
Battery drained from 100% to 5% with zero interaction
- Dominant language
- Kotlin
- Stars
- 3.7k
- Forks
- 917
- PR merge metrics
- No merged PRs in 30d
Description
### Steps to reproduce
1. Install Element on your phone
1. Phone is charged and go to bed
1. Wake up with 5% battery
Yes, YouTube took a chunk before bed but then Element just drains it overnight
. | . | . | . | . | . | .
--- | --- | --- | --- | --- | --- | ---
 |  |  |  |  |  | 
Related issues:
- https://github.com/vector-im/element-android/issues/3884
- https://github.com/vector-im/element-android/issues/2733
- https://github.com/vector-im/element-android/issues/4967
- https://github.com/vector-im/element-android/issues/5640
### Outcome
#### What did you expect?
Battery usage is reasonable and should be practically zero when not using the app (only notifications).
#### What happened instead?
Battery is drained
Debug logs from reproductions that past few nights:
- https://github.com/matrix-org/element-android-rageshakes/issues/42622
- https://github.com/matrix-org/element-android-rageshakes/issues/42663
### Your phone model
Pixel 4a
### Operating system version
Android 13
### Application version and app store
Element Android v1.4.34 [40104342] (G-ba6f7c42-2022-08-23 17:00:11 +0200) (from Google Play)
### Homeserver
matrix.org
### Will you send logs?
Yes
### Are you willing to provide a PR?
No
Contributor guide
Assessment
This issue has not been assessed yet.