tutao / tutanota

Tuta is an email service with a strong focus on security and privacy that lets you encrypt emails, contacts and calendar entries on all your devices.
https://tuta.com
GNU General Public License v3.0
6.13k stars 531 forks source link

Really high background battery usage #7553

Open StackPie71 opened 2 months ago

StackPie71 commented 2 months ago

Bug in mobile app Android App

Describe the bug Since the last update (I think, I never saw this high usage in the past), I see that the background battery usage went up a lot. Only today, Tuta app used 17% of my battery while not being open a single time (11 hours of background usage). I used a couple of time Proton Mail and it used less than 1%.

To Reproduce Steps to reproduce the behavior: Just checked the battery usage on the phone, updated all my apps this weekend.

Expected behavior Going back to a decent battery usage, around the same as other mail app (Proton Mail or Outlook).

Screenshots NA

Smartphone (please complete the following information):

Additional context NA

beatgammit commented 2 months ago

I have the same issue. Since last charge (charged in the evening, checked in the morning with 60% battery left):

On Google Pixel 8 and GrapheneOS without Google Play Services.

Usage percent would be way higher if I'm not running Signal, which has a similar problem.

jgora commented 1 month ago

Since https://github.com/tutao/tutanota/issues/2025 (same issue with android 12), I use my own fork https://github.com/jgora/tutanota/commit/11e494a6a888d74cf84c8bd419e57d673059815c with less battery usage. Wakelock should not be necessary when app is excluded from Doze optimizations