Plexamp stop when connected or disconnected from power

It’s not really clear what’s happening from the app’s perspective but it does fail to be able to communicate with the cast device at a certain point.

Apr 01, 2025 12:33:05.726 [Javascript] INFO - Cast: Error sending message, attempting reconnect: API_NOT_CONNECTED

I would think the most likely culprit was some sort of battery save issue as Android (especially on non-Google devices) can be quite aggressive about it.

If you feel like it, try to generate some clean logs for the issue:

  1. stop playback (hold pause), force quit the app and restart
  2. play something to chrome cast
  3. wait about 15 seconds
  4. unplug the phone from power
  5. wait until it stops playing
  6. capture Plexamp logs

Given that we don’t even see the power (dis)connection, it’s almost certainly something external to the app.