Delta.Chat 0.20.0 drains battery

hi @mmilinovsky welcome aboard - and thank you for your post :slight_smile:

would be interesting if the high battery consumption appears when the app is in idle or if it is used. if the latter case, higher battery consumption is quite normal. the log looks good to me at a first glance.

in general, we had reports about battery usage in the past here and there, but many users these day report the battery usage is “okay” (eg. here).

so, any more information would be useful, maybe also other users will have similar problems, we will see :slight_smile:

There is an open issue, that can cause battery drainage.
See my postings one and two.

Update: The referenced issue was closed in January 2019 and released in Core v0.39.1 (Android + Desktop v0.100.0).

1 Like

I installed the app on my phone and on my wife’s, but we don’t use it until now, so to answer you question: the high battery consumption appears when the app is idle.

At this point, it’s unfortunately unclear if the android-reported battery usage is “real”.

Could you maybe run delta.chat and leave the phone for the night (starting out fully charged)
and see where the battery level is then? And then repeat but without running Delta.Chat?
That would be super-helpful.

Martin, it looks to me as you are using an account that is receiving many (standard) mails:

Chat messages: 21
Messages in contact requests: 197
Contacts: 730

Delta Chat sees these mails and “hides” them in ‘Contact requests’ = ‘Kontaktanfragen’. It downloads those mails and also their attachments. So, even if you do not use/open the app, it is actively checking your INBOX “in the background”.

Yeah, couldn’t deltachat only download the list of new emails (unfortunately still called “contact requests”) by default, and download the whole messages only for the known contacts (if message sizes are small enough or contact has a “default to chat” preference set). Not succeeding with deltachat (MUA better than a messenger)

OK, the phone was nearly full (94%) and the screenshot shows the situation in the morning

Thanks for posting the info!

And if you don’t run DeltaChat, how does the battery develop?

a battery usage of 7% over night does not look very problematic, does it?

It is 700% above the usual 1% (or less) here.

But 7% of the overall usage could be very little in absolute measures, if there is nothing else running (customized rom?).

Martin, would you try to get more detailed info using another app?

The app is called BetterBatteryStats. Details here.

One can easily check the Wakelock (Partial Wakelocks), Network and Process stats of all apps.

OK, I installed BetterBatteryStats, although I’m not very comfortable granting superuser access to it (thank you for the link to the sources at github). However, I will post the results in the next days …

2 Likes

I have the same issue since some days only… the Delta.chat apk (Version) was not changed.
I then removed Delta.chat from Excemption list for battery optimization. Did not help.

I use dismail.de as email-account for Delta.chat only, thus there is no other traffic.

my only idea is that something in Google Services like (Google Cloud Messaging) was changed that negatively affects battery consumption of Delta.chat.

P.s. I have delta chat battery consumption between 47% (active use of phone) an 95% (inactive use of phone).

Hum, when you discover that battery consumption has been high, could you maybe save the debug log and make it available somehow? Not sure how easy it is to discover if delta-chat has been the culprit from it but it’s worth a try. On my side i’ve been using delta-dev for weeks and battery behaviour was quite fine – often, even while using the device, it lastest almost 2 days.

Actually i (at least temporarily) solved the issue in cleaning all past chats / mails in the app. my guess is that the issue was that on the server the messages were deleted but in the app still existing, thus it could be the try of the app to resync all the messages which was not possible as they were deleted from the server.

@thorsten
Maybe You can see extraordinary communication here (log-ring-buffer):
“settings->About Delta Chat(press this text)->(press version info text in next screen)”
I hope this is existing in the newest version?!

I also experience battery drain on Android. For details incl. log see my repsonse in the corresponding GutHub issue: https://github.com/deltachat/deltachat-android/issues/713#issuecomment-462317469

The following workaround helped on my machine: disable watching the SENT-folder at “Settings / Advanced / Watch Sent folder”.
A fix which makes this workaround obsolete is targeted for next release.

Herre is my Screenshot from my Android Android 8.0 Samsung S7 Edge.

Hello @kpleines welcome to the Delta Chat forum!!
Could you please also provide the Delta Chat version you are using??
Regards,
adb