# BUG: Plexamp on Android - High battery drain when not in use

**URL:** <https://forums.plex.tv/t/bug-plexamp-on-android-high-battery-drain-when-not-in-use/818072>\
**Category:** Plex Labs\
**Tags:** plexamp\
**Created:** [November 11, 2022, 5:52am UTC](https://forums.plex.tv/t/bug-plexamp-on-android-high-battery-drain-when-not-in-use/818072 "2022-11-11T05:52:44Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![rwpotter3rd](https://avatars.discourse-cdn.com/v4/letter/r/43a26b/32.png) [@rwpotter3rd](https://forums.plex.tv/u/rwpotter3rd)\
**Post date:** [November 11, 2022, 5:52am UTC](https://forums.plex.tv/t/bug-plexamp-on-android-high-battery-drain-when-not-in-use/818072/1 "2022-11-11T05:52:44Z")

</div>

**Details:**  
**App Version:** Plexamp 4.5.2  
**Phone:** Pixel 4  
**OS:** Android 13 - Oct 5, 2022 Update  
The plex server hosting my music is not accessible from the public internet. When not at home, I play music from downloaded playlists.

**Issue:**  
I have noticed since a recent update that Plexamp has a large background battery drain when not playing music. I will usually use Plexamp with Android Auto to listen to music on my commute. Recently, I’ve seen my phone’s battery drain substantially throughout the day, when the phone isn’t being used much. The Android settings battery screen points the finger at Plexamp. On a typical day, my phone would drain 10-15% while I’m at work, since I don’t use it much while I’m in the office. Since the Plexamp update, I’ve seen battery drain of 40-60% days. I have also confirmed that if I ‘Force Stop’ Plexamp after exiting my car, my battery drain goes back to the usual 10-15%.

 ![Battery Usage Screenshot](https://global.discourse-cdn.com/plex/original/4X/7/6/e/76e2c535337a5baaaafbc90800c02935fd1d03ec.png)

**Steps to reproduce:**  
Have playlist downloaded to Plexamp  
Have Plex server for music inaccessible from public internet  
Use Android Auto to play music from Plexamp  
Turn off and exit vehicle  
Don’t use the phone very much, just watch the excessive battery drain from Plexamp in the background

I was asked to provide logs, and the relevant portion (redacted) is attached. It doesn’t show much as far as I can see. The music stops playing at 18:46:10 when I exit my car, and the app then spends the next ~30 minutes trying to reach out to the server - which it can’t. The logs then stop until 00:16:09 when I connected my phone to home WiFi to upload logs. So the app isn’t logging what it’s doing, but it’s draining a lot of battery.

[Plexamp-redacted.txt](https://forums.plex.tv/uploads/short-url/hAvIsOlhceD78kGLYCFubur7ak3.txt) (83.4 KB)

---

<div class="post-metadata">

**Author:** ![Jason\_D](https://avatars.discourse-cdn.com/v4/letter/j/9f8e36/32.png) [@Jason\_D](https://forums.plex.tv/u/Jason_D)\
**Post date:** [November 11, 2022, 7:59am UTC](https://forums.plex.tv/t/bug-plexamp-on-android-high-battery-drain-when-not-in-use/818072/2 "2022-11-11T07:59:45Z")

</div>

Can’t diagnose the problem for you, got to leave that to the experts.

But have you tried setting the app to restricted battery?

---

<div class="post-metadata">

**Author:** ![elan](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/elan/32/5_2.png) [@elan](https://forums.plex.tv/u/elan)\
**Post date:** [November 11, 2022, 8:34am UTC](https://forums.plex.tv/t/bug-plexamp-on-android-high-battery-drain-when-not-in-use/818072/3 "2022-11-11T08:34:02Z")

</div>

Thanks for a brilliant report, much appreciated; logs, timeframe, scenario. We’ll look at it!

---

<div class="post-metadata">

**Author:** ![elan](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/elan/32/5_2.png) [@elan](https://forums.plex.tv/u/elan)\
**Post date:** [November 11, 2022, 8:47am UTC](https://forums.plex.tv/t/bug-plexamp-on-android-high-battery-drain-when-not-in-use/818072/4 "2022-11-11T08:47:37Z")

</div>

From what I can see, it’s trying to send older view states to a server which it’s having trouble connecting with.

```auto
Nov 10, 2022 18:43:37.586 [Javascript] INFO - ViewState: Sending view redactedmachineIdentifier/11221 (success: 0).

```

The only connection it’s testing is:

```auto
Nov 10, 2022 19:10:17.844 [Javascript] WARNING - DEVICE: Server connection https://10-10-redacted-ip.redactedurl.plex.direct:32400 didn't work for plex-music: HTTP status -28

```

Which is a bit weird:

1. It probably shouldn’t even try to connect to a private IP while on cellular.
2. Not sure why this server doesn’t have a public IP (maybe b/c of your penchant for privacy it’s not even accessible remotely?)

---

<div class="post-metadata">

**Author:** ![elan](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/elan/32/5_2.png) [@elan](https://forums.plex.tv/u/elan)\
**Post date:** [November 11, 2022, 6:59pm UTC](https://forums.plex.tv/t/bug-plexamp-on-android-high-battery-drain-when-not-in-use/818072/5 "2022-11-11T18:59:52Z")

</div>

We’ve made a few fixes for the next release which should alleviate this scenario of a) private server b) pending view state.

---

<div class="post-metadata">

**Author:** ![BanzaiInstitute](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/banzaiinstitute/32/293273_2.png) [@BanzaiInstitute](https://forums.plex.tv/u/BanzaiInstitute)\
**Post date:** [November 11, 2022, 7:17pm UTC](https://forums.plex.tv/t/bug-plexamp-on-android-high-battery-drain-when-not-in-use/818072/6 "2022-11-11T19:17:34Z")

</div>

This wasn’t even my bug but I loved everything about this thread.

---

<div class="post-metadata">

**Author:** ![rwpotter3rd](https://avatars.discourse-cdn.com/v4/letter/r/43a26b/32.png) [@rwpotter3rd](https://forums.plex.tv/u/rwpotter3rd)\
**Post date:** [November 11, 2022, 9:51pm UTC](https://forums.plex.tv/t/bug-plexamp-on-android-high-battery-drain-when-not-in-use/818072/7 "2022-11-11T21:51:33Z")

</div>

@elan This is awesome! Thank you so much! I don’t think I ever expected the creator of Plex to have a fix for the issue figured out in less than a day. Actually insane. I very much look forward to testing it out once it’s available for download.

Also, to your 2nd point in your 2nd post: Yep. I definitely have an eye out for privacy (it’s about 50% of my job too, so it’s kind of a habbit at this point). I can access my server on the go when I have my home VPN connected, but since a lot of my tracks are cached in the app, I don’t typically need to connect to it much for Plexamp. The VPN causes extra extra battery drain anyway - which I definitely notice (lol).

Thanks again for the (quite ridiculously) rapid response and action on this!

---

<div class="post-metadata">

**Author:** ![Pedgeth](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/pedgeth/32/85761_2.png) [@Pedgeth](https://forums.plex.tv/u/Pedgeth)\
**Post date:** [November 17, 2022, 3:10am UTC](https://forums.plex.tv/t/bug-plexamp-on-android-high-battery-drain-when-not-in-use/818072/8 "2022-11-17T03:10:36Z")

</div>

Is there any update on this? I’m having massive problems with plexamp killing my battery

---

<div class="post-metadata">

**Author:** ![SamFromPlex](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/samfromplex/32/105296_2.png) [@SamFromPlex](https://forums.plex.tv/u/SamFromPlex)\
**Post date:** [November 17, 2022, 5:09am UTC](https://forums.plex.tv/t/bug-plexamp-on-android-high-battery-drain-when-not-in-use/818072/9 "2022-11-17T05:09:11Z")

</div>

Can you provide any more information please @Pedgeth?

e.g.

- The scenario in which the battery is being drained,
- How much battery has been used by Plexamp unexpectedly,
- Some logs directly after you notice the battery has been used by Plexamp unexpectedly when the phone has been idle

Thanks!

---

<div class="post-metadata">

**Author:** ![Pedgeth](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/pedgeth/32/85761_2.png) [@Pedgeth](https://forums.plex.tv/u/Pedgeth)\
**Post date:** [November 17, 2022, 1:06pm UTC](https://forums.plex.tv/t/bug-plexamp-on-android-high-battery-drain-when-not-in-use/818072/10 "2022-11-17T13:06:36Z")

</div>

If I open the plexamp app, use it as normal, connected via Android auto/usb to my car’s ICE system. Finish my journey, disconnect and stop using the app. The app keeps using approx 20% battery in the background from that point onwards, regardless of what else is running on the phone. Only option seems to be too force stop the app from the “App info” page within Androids settings.

I can’t provide any logs right now as I have stopped using the app since I noticed the issue

---

<div class="post-metadata">

**Author:** ![SamFromPlex](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/samfromplex/32/105296_2.png) [@SamFromPlex](https://forums.plex.tv/u/SamFromPlex)\
**Post date:** [November 17, 2022, 6:53pm UTC](https://forums.plex.tv/t/bug-plexamp-on-android-high-battery-drain-when-not-in-use/818072/11 "2022-11-17T18:53:42Z")

</div>

Thanks! I have been performing the same steps (drive with Android Auto using Plexamp) the last few days trying to replicate the reported battery issues and I don’t get the battery drain reported.

We are continuing to investigate however it is difficult for us to resolve issues like this, when we can’t reproduce the problem, without logs.

---

<div class="post-metadata">

**Author:** ![frailimb](https://avatars.discourse-cdn.com/v4/letter/f/c2a13f/32.png) [@frailimb](https://forums.plex.tv/u/frailimb)\
**Post date:** [November 18, 2022, 11:52pm UTC](https://forums.plex.tv/t/bug-plexamp-on-android-high-battery-drain-when-not-in-use/818072/12 "2022-11-18T23:52:43Z")

</div>

I can confirm I am experiencing the same. It’s not every time, but it was twice this week. I use Plexamp via Android Auto to stream during my 20 minute car ride to the train. Halfway through the day, my battery was 40% lower than usual with Plexamp being the main culprit.

This should be the relevant log. I hope I removed all the personally identifiable information, but let me know if I missed anything.

[Plexamp-Log.log](https://forums.plex.tv/uploads/short-url/ufFfngs6fBjtwgI7aJRRyJWvbap.log) (270.3 KB)

---

<div class="post-metadata">

**Author:** ![ChaosBlades](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chaosblades/32/3877_2.png) [@ChaosBlades](https://forums.plex.tv/u/ChaosBlades)\
**Post date:** [January 12, 2023, 11:31am UTC](https://forums.plex.tv/t/bug-plexamp-on-android-high-battery-drain-when-not-in-use/818072/13 "2023-01-12T11:31:37Z")

</div>

I am also having this issue on my pixel 7 pro. Listened to Plexamp for about 30min and it is at the top of my battery list with 8 hours used and 12% drain. I’ll try to get logs in a couple of days when I am not working.

---

<div class="post-metadata">

**Author:** ![ChaosBlades](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chaosblades/32/3877_2.png) [@ChaosBlades](https://forums.plex.tv/u/ChaosBlades)\
**Post date:** [January 15, 2023, 12:28am UTC](https://forums.plex.tv/t/bug-plexamp-on-android-high-battery-drain-when-not-in-use/818072/14 "2023-01-15T00:28:33Z")

</div>

I have resolved this issue by setting battery optimization in Android from Optimized to Restricted. This will resolve any current or future battery drain issues.

I am now getting home from work with 70% battery instead of 30%. Plexamp still automatically start playing music when Android Auto is connected which is all I use it for.

---

<div class="post-metadata">

**Author:** ![elan](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/elan/32/5_2.png) [@elan](https://forums.plex.tv/u/elan)\
**Post date:** [January 25, 2023, 9:07pm UTC](https://forums.plex.tv/t/bug-plexamp-on-android-high-battery-drain-when-not-in-use/818072/15 "2023-01-25T21:07:47Z")

</div>

Next release has an improvement there as well. We don’t recommend changing the battery setting to Restricted, generally.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [April 25, 2023, 9:08pm UTC](https://forums.plex.tv/t/bug-plexamp-on-android-high-battery-drain-when-not-in-use/818072/16 "2023-04-25T21:08:33Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
