podverse / podverse-rn

Podverse mobile app written in React Native for iOS, Android, and F-Droid
https://podverse.fm/about
GNU Affero General Public License v3.0
213 stars 36 forks source link

Investigation: Identify which operations consume the most battery power (Android) #1895

Open mitchdowney opened 1 year ago

mitchdowney commented 1 year ago

We have received some reports of high battery usage in Podverse mobile. I don't really have any ideas as to what could be causing it, so I think before we propose solutions, we should try to investigate what operations are specifically leading to battery drain issues.

https://github.com/orgs/podverse/discussions/7#discussioncomment-6663087

mitchdowney commented 1 year ago

related discussion: https://github.com/orgs/podverse/discussions/7#discussioncomment-6663087

ArjenStens commented 1 year ago

I have been experiencing issues with the app running in background as well. Throughout a regular day i lose 15-25% to the app even if i don't open it a single time that day. It's not as extreme as mentioned above. It seems that the app keeps consuming battery when in background, seemingly without doing anything (it happens in airplane mode too).

I had to restrict battery usage to cut it off but the nasty side-effect is that it will stop playing after a few minutes when I open any other app.

I have been having this issue for atleast the last 6-8 months. I'm running up-to-date GrapheneOS (Android 13) on a Pixel 7 Pro, although this issue was already present when using the app on a Pixel 6, same OS

Hope this info helps...

kodebach commented 10 months ago

I have also experienced huge battery drain while the app is in the background. For example, today I listened to a 42 min podcast episode with a 2 hour pause inbetween. In total the battery went down from 40% to 18%, but of 15 of those 22 %points were during the 2h pause (from 37 to 22). The phone was completely idle in my pocket during these 2h. The cellular reception was bad during the time as well, so maybe the app accidentally leaves a connection open in the background combined with the bad reception that caused the unusual battery drain.

I'm using a Pixel 6 on the latest Android 14 Patch (Build UP1A.231005.007).

ghosty999 commented 8 months ago

Im still having disproportionate battery drain from Voice. Sadly :( Pixel 7 Pro

lovegaoshi commented 5 months ago

I don't see something similar with a samsung S21 + podverse, though the only data point I have is 30 min background play = 1.4%.

I'm just benchmarking my own app's battery (also an RNTP app) vs other alternatives (youtube, AIMP/native, namida/flutter). My current conclusion is RNTP does use higher battery but not multiples high.

If people with this problem are also experiencing high wake lock time, I do have a solution for that