focus-android icon indicating copy to clipboard operation
focus-android copied to clipboard

Focus drains phone battery

Open amedyne opened this issue 4 years ago • 8 comments

This bug is to investigate further reports from users that when Focus is in the background, the app uses a lot of battery.

See #5269, #4684

amedyne avatar Sep 30 '21 21:09 amedyne

I have been keeping tabs opened on some devices even overnight, with no notification from OS related to battery drain from Focus. Also, battery levels do not drop. Tested on Android 9 and 10.

mcarare avatar Oct 08 '21 15:10 mcarare

Triage: this doesn't contain actionable info so it seems to be a tracking issue for the focus team. We'll put in the "Triaged" column and can move it to a P1 if we get more actionable information.

mcomella avatar Oct 27 '21 21:10 mcomella

I don't have any additional information. Just want to inform you that I noticed a huge battery drain tonight. Some days ago I bought a new phone and (like on the previous one) installed Firefox Focus (the latest version from Google Play). The phone is a new "Samsung Galaxy S21 FE" (debloated) with Android 12 and One UI 4. I was really surprised this morning when I saw a big fall in the battery capacity. I checked which app drinks so much juice while the phone was in Airplane mode overnight. It was a Firefox focus. I don't know how, I had just installed it and checked if it works. Then it went to the background. Now I will be more careful about it.

kacnje avatar Apr 11 '22 03:04 kacnje

I will monitor my current device(Pixel 3a Android 11) for a few days with https://developer.android.com/topic/performance/power/setup-battery-historian, to see if I catch something

ionutbedregeanu avatar Apr 13 '22 11:04 ionutbedregeanu

Tnx. Maybe you will find something. My "investigation": I noticed that Focus had a high battery drain while I had a shortcut to URL from Focus on Android's home screen. Yesterday I remove the shortcut and it looks that now everything is ok. It is interesting because the shortcut shows to my website which doesn't refresh by itself. Can shortcut (even if I didn't use it) be the reason for high battery consumption?

kacnje avatar Apr 14 '22 03:04 kacnje

After some tests I didn't find anything weird, but I will let this ticket open to keep an eye on it I also took a look on Network informations, Process info, Scheduled jobs, Services and I didn't notice something wrong

Day 1

First I tested with the debug version of Focus, I just let it open over night

Day 2

Debug version of Focus, open over night with an wikipedia shortcut and airplane mode on

App Stats Day 2

Day 3

Release version of Focus, open over night with an wikipedia shortcut and airplane mode on

App Stats Day 3

ionutbedregeanu avatar Apr 19 '22 14:04 ionutbedregeanu

After a few days, I can confirm that there is no Focus battery drain anymore while I remove a shortcut. A shortcut points to my weather station page: https://izo.amebis.si/belchertown Maybe you can create a shortcut to it for a test. I attacheched a screenshot I made when I noticed the problem. Commendation to your job. Screenshot_20220412-033903_Device care

kacnje avatar Apr 20 '22 04:04 kacnje

Update: Still can't reproduce the bug I will let this ticket open to be under observation I tried the following scenario on debug and prod builds:

  1. Open Focus debug/prod build
  2. Navigate to https://izo.amebis.si/belchertown
  3. Add https://izo.amebis.si/belchertown as shortcut and as top site
  4. Put the Focus app in background
  5. Put the device on airplane mode
  6. Let the device overnight in this state

Battery stats after those tests

Debug build

debug_weather_shortcut_battery_app_stats debug_weather_shortcut_device_battery_stats

Production build

prod_weather_shortcut_device_battery_stats prod_weather_shortcut_battery_app_stats

ionutbedregeanu avatar May 04 '22 06:05 ionutbedregeanu

Moved to bugzilla: https://bugzilla.mozilla.org/show_bug.cgi?id=1802659

Change performed by the Move to Bugzilla add-on.

cpeterso avatar Nov 26 '22 06:11 cpeterso