Antennapod: Keep notification media controller alive

Created on 22 Oct 2015  Â·  15Comments  Â·  Source: AntennaPod/AntennaPod

Currently the media controller in the notification bar is removed after a few minutes if the phone is asleep. Not sure if this is by design or not but it makes for a frustrating experience when relying on my Bluetooth headset to start/stop the playback.

confirmed bug

Most helpful comment

Thanks again @mfietz - after turning off the automatic power management for AntennaPod, the behaviour returned to normal.

All 15 comments

What version of AntennaPod are you currently using? What version of Android? Do you have "Persistent Playback Controls" enabled in AntennaPod settings?

This isn't by design. We attempt to keep AntennaPod running, but the system can also shut us down if we're not doing anything.

I'm running 1.4.0.2 and yes I have persistent playback control enabled. I'm on my phone so not sure but shouldn't the playback services be started using startForeground() to make it less of a target for killing?

Sorry, I'm on kitkat 4.4.4

Hmm, I'm not sure about this. Do you have any thoughts @mfietz?

We _do_ use startForeground. You just don't start the service with it, you call startForeground _from_ the service and supply a notification: http://developer.android.com/reference/android/app/Service.html#startForeground(int, android.app.Notification)

Also, I can't remember I have ever seen this behavior. When persistent controls is enabled, the notification stays on my lockscreen, even after hours. Don't think it ever just "vanished"
Has to be another underlying problen. But I'm afraid without a definitive way to reproduce this or a Logcat there isn't anything we can do.

Is this still an issue?

I believe so, could be that the media control notification is changed to
removable when it is not in playing state. Other media players keeps it as
a non removable notification and adds an explicit exit button to the
notification.
Den 17 jan 2016 11:52 fm skrev "Martin Fietz" [email protected]:

Is this still an issue?

—
Reply to this email directly or view it on GitHub
https://github.com/AntennaPod/AntennaPod/issues/1284#issuecomment-172313249
.

This is an old threaf, I realise, but I'm noticing similar behaviour, but with the added problem that playback will simply stop after a period with the screen off.
The headset button and the notification both regularly become unresponsive.

I'm on a OnePlus 3t, Android 7.1.1, Permanent Notification is enabled, and batter optimization is turned off for Antenna Pod

I'm also seeing something like this - playback audio (just audio) stops shortly after the screen turns off (but phone is not locked). Turning screen back on turns the audio back on. Anyone else?

Some vendor Android versions also come with custom energy saving apps, i.e. you would not find this in the Android settings, but there could be an app that is responsible for saving energy.

Thanks for the tip, will it check it out.

I think I just started seeing this behavior when my Galaxy S7 was updated to Android8.0.0.
I will look for energy savings features Samsung may have introduced.

Thanks again @mfietz - after turning off the automatic power management for AntennaPod, the behaviour returned to normal.

Thank you very much for sharing this. I have headphones with a physical pause/play button and each time I paused and wanted to resume minutes or only seconds later, the button just didn't work anymore. I had to take out my phone, unlock it (because the lock screen controls vanished) and then resume the media again.

I hope people with the same problem are going to find this.

This is a duplicate of #1417

Was this page helpful?
0 / 5 - 0 ratings