Skip to content
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.

Battery draining #671

Closed
Krumelur opened this issue Jun 17, 2020 · 56 comments
Closed

Battery draining #671

Krumelur opened this issue Jun 17, 2020 · 56 comments
Assignees
Labels
apple use to tag issues that are related directly to the Exposure Notification Framework itself bug Something isn't working community Tag issues created by community members good first issue Good for newcomers in review Moderators are investigating how to best proceed with the issue mirrored-to-jira This item is also tracked internally in JIRA

Comments

@Krumelur
Copy link

Krumelur commented Jun 17, 2020

Describe the bug

Installed the release version of the app on iPhone X. The app completely drained my battery over night. Power usage protocol shows Health’s COVID-19 contact protocol being responsible for between 60% and 100% of battery usage.

Expected behaviour

Battery life shouldn’t be affected as documented.

Steps to reproduce the issue

Check the battery section in the settings.

image

image

Technical details

iPhone X, iOS 13.5.1

Possible Fix

Additional context

The COVID-19 context protocol doesn’t contain any entries.

I noticed that a message popped up twice yesterday about my region not being supported and was asked to check the Corona warning app used. The CWA is the only such app installed and configured. Maybe this problem is related?
Note: I live in Germany and didn’t travel abroad, so the region thing looks like a bug to me.


Internal Tracking ID: EXPOSUREAPP-1882

@user858753257
Copy link

The same here on iPhone 11 Pro . Normally I have at the end of the day 50-60% .
Yesterday after the first day it was down to 30% .
No other changes made to the device .

22880824-5FCF-43DB-9AA3-3071E5BCD7E5

@dietrichb
Copy link

I also observed high battery drain on an older iphone. The package 'Corona Warn App + Covid-19-Kontaktprotokoll' together account for 26% battery drain.

Phone

  • iphone SE (old)
  • ios 13.5.1
  • Corona Warn App 1.0.2

Battery Usage (24h)

  • Corana Warn: 5%
  • Health (Covid-19-Kontaktprotokoll): 21%

Compare: Other Battery Usage (24h)

  • Spotify: 23% (~ 90 minutes streaming via Wifi and Bluetooth Headset)
  • WhatsApp: 5% (11 minutes)

iphoneSECovidBatteryDrain

@thomasaugsten
Copy link
Member

I think this high percentage is because there is no other App running in this time period.

The COVID-19-Kontaktprotokoll is implemented by Apple.
We will give this feedback back to Apple to improve this behavior in the future.

@n-thumann
Copy link

n-thumann commented Jun 17, 2020

The battery usage of COVID-19 Exposure Logging is controlled by Apple, so there´s probably no way to fix as a developer. Also, the battery statistics can be misleading, especially when there´s barely any other app running at the time: On my iPhone XR the Exposure Logging took 100% between 04:00 and 05:00, because no other app was running ✌️

@chris-redbeed
Copy link

I used my phone (after installing the app) normally and running on iOS 13.6 Beta 2:
"COVID-19 Exposure Logging" just needs 2% battery

@dietrichb
Copy link

I think this high percentage is because there is no other App running in this time period.

The COVID-19-Kontaktprotokoll is implemented by Apple.
We will give this feedback back to Apple to improve this behavior in the future.

Sure: The percentage depends on activities by other apps, it is relative.

However: One can try to estimate what it means in absolute numbers. In my case the battery drained from 100% to 15% in 24h (85%). Multiplying with 26% relative usage of (Warn App + Covid 19 Exposure Logging) this translates to an absolute 22% battery drain within 24 hours. This might be an issue, if one has no possibility to recharge the phone for a longer period.

@marcohorstmann
Copy link

I have installed it yesterday morning right after getting up.
In hours where I was not using my phone activity of "Covid-19-Kontaktprotokoll" was up to 38%.
In hours I used my phone it was down to 1-3%. Actually I didn't observed a much bigger battery drain as usual. Maybe this depends on my personal bluetooth use? I have a Apple Watch and AirPods which both are connected by Bluetooth.

@Krumelur
Copy link
Author

Please, let’s not try to change facts by interpreting the numbers differently.
Although the battery usage must be seen in relation to other applications running, the fact remains that after leaving the phone untouched for about eight hours the battery was empty.
This was never the case prior to using the app or the involved frameworks.
Over the last 24 hours the impact of the app and the corona framework contributed 30% to the battery usage according to the battery protocol.
As a user I don’t care whose fault this is. It must be fixed. Otherwise, you’ll end up getting negative PR and people won’t install the application.

@thomasaugsten
Copy link
Member

@Krumelur can you please provide more information about your device and connected bluetooth devices.
You using iOS 13.5.1 or iOS 13.6?
Also your using behavior would be interesting can you reproduce this battery consumption?

@Krumelur
Copy link
Author

@thomasaugsten please see original report: Phone X, iOS 13.5.1.
I'll have an eye on it and see if it happens again. Last night, the phone wasn't used at all and just idling. No music played, no other apps used.

There are other bluetooth devices the phone is using, but none of them was in actual use during that time period: Car BT Key, Apple Watch & AirPods.

I'll do a test today and tomorrow. Will charge to 100% with contact tracing enabled and check tomorrow morning and then do the same the day after with contact tracing off.

@mynchau mynchau added bug Something isn't working good first issue Good for newcomers in review Moderators are investigating how to best proceed with the issue labels Jun 17, 2020
@robertoschwald
Copy link

Installed the App yesterday evening.
Was home the whole day, but Battery usage of the Health "COVID-19 contact protocol" is at 8%.
The Corona-Warn battery usage is at "--", so I think Apple needs to fix this...

@max-hzi
Copy link

max-hzi commented Jun 17, 2020

Using the App for around 28h now. Stats on an iPhone 8, iOS 13.5.1 (last 24h):

  • Corana Warn: 3% (6 mins foreground)
  • Health (Covid-19-Kontaktprotokoll): 6%

Everything as expected, phone used as always with light Safari, Mail and Messages use, Music for approx 3h (mainly background).

@thomasaugsten
Copy link
Member

@Krumelur Thanks for your help. If this behavior today the same please give here the feedback I will than contact you via e-mail.

@imdatceleste
Copy link

Same here, iPhone 6s: usually at the end of the day, I have around 50-60% left. I installed CWA yesterday (afternoon), and at the end of the day I had only 38%. Looking at usage, "Health (Covid-19 Exposure Logging) uses 17% and is on position 3.

Knowing how much I used the other apps (pos 1: 20%, pos 2: 18), the battery usage of "Health..." is not acceptable.

It is not your fault, but in the end this will result in less and less people using it, so it needs to be fixed - by Apple - and fixed fast(!)

This not only requires you to charge your battery more often but it also reduces the life-time of your battery significantly...

@jwildeboer
Copy link

Just adding my observation as a FYI - On my iPhone SE (Old 2016 version) no problems, battery usage normal. On my iPhone 11 I noticed significant higher battery usage and it got really hot this morning after it did the CWA update at 9:20. Solution: I switched the iPhone 11 off and on again, that seems to fix it. Temperature normal and battery usage seems to be OK again too.

@felixbuenemann
Copy link

On an iPhone SE 2020 running iOS 13.5.5 beta, I drained about 40% of the battery over 18 hours and 35% of that was the COVID-19 Contact Protocol, so that’s about 14% of the total capacity.

I’ll try if it differs on iOS 13.6 Beta.

@Krumelur
Copy link
Author

Krumelur commented Jun 18, 2020

Here’s the promised update. After another night of idling, the battery went from 98% to 74% within 11h.
Over the past 24h the app contributed 13% of overall battery usage.
During the night battery usage was almost exclusively caused by the contact protocol with a contribution of 60% to 100% (second screenshot).

Conclusion: 24% loss over 11h doesn’t seem too bad and better than the initial observation where it had used 37% within roughly the same time period.

Does contact tracing run more tasks initially, thus causing more energy use? The photos app has a similar behavior: excessive CPU use until all photos are processed, then very little usage.

I’ll post another update in 24h with contact tracing disable to see the difference in energy consumption.

image

image

@mrgrauel
Copy link

mrgrauel commented Jun 18, 2020

Irgendwas scheint seltsam. Die App hat laut Apple bisher 0-mal die Codes überprüft. Die Installation und Aktivierung war am Dienstag gegen 8 Uhr morgens. Könnte es zusammenhängen, dass hier das System potentiell Amok läuft und unter gewissen Umständen in einer Loop hängt, wodurch so viel Akku verbraucht wird? Will überprüfen, aber kann es nicht etc. 🤔

IMG_6996

@ferdinand
Copy link
Contributor

@mrgrauel Bisher hat sich noch niemand über die App positiv gemeldet, dementsprechend gibt es noch keine IDs zu überprüfen (siehe #675).

@imdatceleste
Copy link

So, I had to switch off tracing because the battery usage is really, really horrendous.

Background

I have not moved outside of my apartment during the test-pages. The iPhone was on WiFi about 100% of the time.

I had installed CWA and switched on Exposure Loggin, the result is really bad. Within 24hrs the battery was used mostly by Health (COVID-19 Exposure Loggin).

Environment

  • iPhone 6s
  • iOS 13.5.1
  • Most other apps are not doing anything
  • Lots of other devices with Bluetooth on around me (I'm a developer :-):
    • 1x macPro
    • 1x macbook Air
    • 2-3 iPads
    • 1x iMac
    • 2x iPhones
    • 1-2 Audio-Devices...

Again, this is probably not a problem that you guys can solve, but this is more of an FYI: I have to switch off Exposure Logging because I don't want to charge my battery 2x per day (even though I am not moving at all)

IMG_3983

@dietrichb
Copy link

I also observed high battery drain on an older iphone. The package 'Corona Warn App + Covid-19-Kontaktprotokoll' together account for 26% battery drain.

Phone

* iphone SE (old)

* ios 13.5.1

* Corona Warn App 1.0.2

Battery Usage (24h)

* Corana Warn: 5%

* Health (Covid-19-Kontaktprotokoll): 21%

Compare: Other Battery Usage (24h)

* Spotify: 23% (~ 90 minutes streaming via Wifi and Bluetooth Headset)

* WhatsApp: 5% (11 minutes)

iphoneSECovidBatteryDrain

Yesterday I tried to reproduce the behaviour from 'day 1' by charging my phone to 100% followed by a powercycle and then using it for 24 hours (without charging). Within 24 hours, the battery drained from 100% to 10%.

  • battery usage of 'Corona-Warn-App' was only 1% -> ok.
  • battery usage of 'COVID-19 Exposure Logging' was about 11%

--> The battery drain caused by 'COVID-19 Exposure Logging' is reduced to 1/2 of what was observed on the first day: It still causes ~10% of the total battery drain within 24 hours.

Wild guess:

  • powercycling helped, or
  • higher drain on 'day 1' was caused by s.th. like an initial calibration of 'COVID-19 Exposure Logging'.

Conclusion from my side: The battery drain of the 'Corona Warn App' itself seems ok., but Apples 'COVID-19 Exposure Logging' has room for improvement.

@Krumelur
Copy link
Author

Another 24h later with contact tracing disabled in settings, the energy consumption was 32% - conclusion: I can no longer keep my claim up that battery life is negatively affected by the app or Apple’s new feature.

The energy consumption seems to be within similar ranges.

@mrgrauel
Copy link

I can confirm @Krumelur findings. After 48 hours of battery draining it seems to be back to a normal energy consumption.

@EmDee
Copy link

EmDee commented Jun 19, 2020

Just a heads up: There seems to be a bug in iOS 13.5.1 regarding battery consumption and Bluetooth: https://discussions.apple.com/thread/251435983

There are numerous confirmed reports on Twitter as well. So this is less likely an issue with the app, but with iOS itself.

@bufemc
Copy link

bufemc commented Jun 20, 2020

Unfortunately I can confirm that "sometimes" not Mail (see 2nd image, I consider this also to be a bug [by Apple], Push is off), but the Covid 19 Contact Protocol seems to drain the battery:

image

image

image

It's an unused iPhone 8plus while sleeping, latest iOS, in my case.

@philipp-heinrich
Copy link

philipp-heinrich commented Jul 26, 2020

Please see my Battery usage reports attached. Normally Health consumed 4-6% in a regular day, starting from Saturday background usage went up to 14 and 28% on Sunday

Running on iOS 13.5.1 and CWA 1.1.1 (3)

443543DD-9D86-465E-BCFB-40BC165FD30A

0804205A-937E-4014-88CB-FA6B8264436F

AC865C78-BD13-4937-A793-BBEAA7CA6866

@sicbb
Copy link

sicbb commented Aug 26, 2020

I am using my iPhone 11 Pro Max with iOS 14 Developer Beta 5 and COVID-19 Contac Protocol is using 24% pur of 100% Battery (10 Days stats). It is too damn high!

@thomasaugsten
Copy link
Member

@sicbb Can you please try Beta 6?

@sicbb
Copy link

sicbb commented Aug 26, 2020

@sicbb Can you please try Beta 6?

Download in progress...

@svengabr
Copy link
Member

@sicbb Thank you for your effort. Have you already tried a test with the Developer Beta 6?

Best regards,
SG

Corona-Warn-App Open Source Team

@sicbb
Copy link

sicbb commented Aug 27, 2020

@svengabr Yes, i installed yesterday the Developer Beta 6. Since then, my Battery Status Screen shows COVID-19 at 16% usage for the last 24h.

@thomasaugsten
Copy link
Member

@sicbb How long was your overall Bildschirm ein and aus time? Because this percentage is not based on your battery capacity it is based on you complete usage of the phone in the last 24h. This means a not used phone has a high percentage and a heavy used phone has 1% here

@sicbb
Copy link

sicbb commented Aug 27, 2020

24h:
IMG_0085

10 Days:
IMG_0086

@thomasaugsten
Copy link
Member

Thanks for the insights. As you can see for example yesterday you have an overall Batterienutzung of ~12% 16% of this are for Covid19 Framework this means around 2% of your battery capacity are used for Covid19 Framework. We have seen around 1%-2% as normal.
I hope interpret the numbers right. But please check if you have a real significant drop in battery capacity when you are not using your phone.

@huebi82
Copy link

huebi82 commented Sep 15, 2020

49912723-7894-4E0D-9954-D8ECCF86A08A
5154C6D0-92E0-414D-87F2-38A204FA99AA
EB6F76B6-042C-4D01-A061-631A4B7E64D1

Moin moin
Ich war einer der ersten die diese "warnapp" geladen hat!
Anfangs sind mir keine Probleme aufgefallen außer das mit "Tag 13/14" ...
Mittlerweile is diese app zum Stromfresser mutiert was garnicht geht!
Auch wenn's ne schöne/sinnvolle idee war is es mir wichtiger abends noch jemanden zu erreichen!
Seit heute is das Kontaktprotokoll deaktiviert!
Wenn sich in der Entwicklung der app nix tut bleibt es für mich auch dabei!d.h. die app fliegt runter!
Was ich definitiv nicht machen werde ist meinen Jailbreak wegen dem furz aufzugeben!

Iphone8
Ios 13.5

Mfg 🤘🏼

@thomasaugsten
Copy link
Member

Hi,

wie gesagt dieser Prozentsatz bezieht auf die relative Nutzung der letzte 24h. Das heißt wenn du dein Gerät intensiv nutzt dann fällt der Prozentsatz auf 1-2%. Ich würde dir ja ein Update auf 13.7 aber ich denke du möchtest den Zustand deines Gerätes beibehalten. Außerdem sind in dem Zustand deines Gerätes schwer Aussagen über Energieverbrauch zu machen.

@ferdinand
Copy link
Contributor

@huebi82 Nicht die App verbraucht bei dir den Akku sondern das von Apple ins Betriebssystem integrierte Exposure Notification Framework. Die App hat auf dessen Akkuverbrauch keinen Einfluss. Wenn du, wegen dem Jailbreak, nicht bereit bist eine aktuelle iOS Version zu verwenden wird dir leider nicht zu helfen sein.

@huebi82
Copy link

huebi82 commented Sep 16, 2020

Ausreden gibt es wie Sand am Meer. Deswegen sind diese auch so wertlos!
Leute ich bin kein vollidiot!
1.wenn ich mein gerät NICHT intensiv nutze müsste Abends noch akku vorhanden sein! Seit EUREN updates is das nicht mehr so!

Nachdem ich die App entfernt habe is auch wieder ruhe mit dem nutzlosen Stromverbrauch

Mfg

D48DB3FE-0AB8-43FD-B9F5-C20FA1ACDED4

@jankout
Copy link

jankout commented Sep 21, 2020

Ich kann das auch nur bestätigen. Mit iOS 13.7 und 14 ist es noch mehr geworden - innerhalb der 10 Tage stand es mit 16% an der ersten Stelle. Ich nutze iPhone 8.

@Ein-Tim
Copy link
Contributor

Ein-Tim commented Sep 21, 2020

Aber was steht dort?
"Corona-Warn App" oder "Begegnungsmitteilungen".
Wenn "Begegnungsmitteilungen" steht, dann weiße ich darauf hin das diese von Apple stammt und somit die Entwickler der CWA keinen Einfluss auf diese Schnittstelle noch auf ihren Batterieverbrauch haben.

@jankout
Bitte schau dir mal diese Aussage von @thomasaugsten an:

Hi,
wie gesagt dieser Prozentsatz bezieht auf die relative Nutzung der letzte 24h. Das heißt wenn du dein Gerät intensiv nutzt dann fällt der Prozentsatz auf 1-2%. Ich würde dir ja ein Update auf 13.7 aber ich denke du möchtest den Zustand deines Gerätes beibehalten. Außerdem sind in dem Zustand deines Gerätes schwer Aussagen über Energieverbrauch zu machen.

@jlang027
Copy link

jlang027 commented Sep 21, 2020

Bei mir haben die Bewegungsmitteilungen seit iOS 13.7 über die letzten 10 Tage jetzt 53% der Batterienutzung erreicht :-(

Und ja - die CWA kann direkt nichts dafür, allerdings ist sie die einzige Anwendung die Bewegungsmitteilungen braucht. Und damit indirekt schon verantwortlich, dass ich mein IPhone seit der Aktivierung der CWA oft mehr als einmal am Tag laden muss.

Dieses Problem zu lösen kann nicht auf mich als Endanwender abgeschoben werden - und trägt, da jetzt seit Wochen bekannt, auch nicht zur freudigen Nutzung der CWA bei. Und Tatsache ist leider, dass die Batterie, bei ansonsten gleicher Nutzung, nach der Installation der CWA deutlich öfter zu laden ist.

Auch ich habe ein iPhone 8 mit iOS 13.7

@Ein-Tim
Copy link
Contributor

Ein-Tim commented Sep 21, 2020

Und ja - die CWA kann direkt nichts dafür, allerdings ist sie die einzige Anwendung die Bewegungsmitteilungen braucht. Und damit indirekt schon verantwortlich, dass ich mein IPhone seit der Aktivierung der CWA oft mehr als einmal am Tag laden muss.

Das ist natürlich korrekt, aber ich denke nicht das die Entwickler durch umstellen von Einstellungen das ENF dazu bringen können weniger Strom zu verbrauchen (da dieses ja von Apple kommt).
Oder was meinst du?

@jankout
Copy link

jankout commented Sep 21, 2020

Ich denke, dass es wichtig wäre, direkt mit Apple zu sprechen und darauf hinzuweisen.

@thomasaugsten
Copy link
Member

Dazu benötigen wir detaillierte Screenshots der Batterynutzung, denn die 16% sind die relative zu deiner Gesamtnutzung und nicht zu deinem Batteryverbrauch.

@jlang027
Copy link

jlang027 commented Sep 21, 2020

die Frage ist dann wer spricht mit Apple? Ich werde als Anwender von CWA das nicht tun. Ich stelle nur fest, dass der Stromverbrauch meines iPhones nach der Aktivierung der CWA angestiegen ist.

Und wenn ich die CWA nicht im Grunde als für die ganze Gemeinschaft für wichtig halten würde ja
hätte ich diese schon sehr lange wider gelöscht.
image
image
image

@Ein-Tim
Copy link
Contributor

Ein-Tim commented Sep 21, 2020

die Frage ist dann wer spricht mit Apple? Ich werde als Anwender von CWA das nicht tun. Ich stelle nur fest, dass der Stromverbrauch meines iPhones nach der Aktivierung der CWA angestiegen ist.

@jlang027
Ich gebe dir eindeutig Recht.
Der Normalnutzer wird nicht den Unterschied zwischen CWA und ENF kennen und einfach als Lösung die App deinstallieren.
Danke für diese Sichtweise von der anderen Seite!

@thomasaugsten
Copy link
Member

thomasaugsten commented Sep 21, 2020

@jlang027 50%von 30% Batterienutzung sind 15% deines gesamten Batteryzeit das ist schon relativ viel aber der Wert ist auch hoch weil andere Apps kaum genutzt werden, kannst du bitte noch den Screenshot von deinem Batteriezustand einfügen?

@jlang027
Copy link

Meine Screenshots sind alles 10 Tage Werte, der Batteriezustand ist bei 97%

@ghost
Copy link

ghost commented Sep 29, 2020

Hello @Krumelur,

This issue has been marked as obsolete and will be closed now.
If you have additional questions or if this issue raises more frequently, please feel free to reach out.

thanks,
LMM

Corona-Warn-App Open Source Team

@huebi82
Copy link

huebi82 commented Mar 29, 2022 via email

This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
apple use to tag issues that are related directly to the Exposure Notification Framework itself bug Something isn't working community Tag issues created by community members good first issue Good for newcomers in review Moderators are investigating how to best proceed with the issue mirrored-to-jira This item is also tracked internally in JIRA
Projects
None yet
Development

No branches or pull requests