I’ve had the beta install this morning, and notice that the skip forward/skip back buttons on my widget no longer work. It definitely functioned yesterday and has only stopped since 3.12.0-beta1 installed.
I’ve deleted and re-added a new widget, no difference.
Rewind and fast forward aren’t doing anything for me either.
logcat shows “Ignore key event that is not a play command on API 26 or above to avoid an ‘ForegroundServiceDidNotStartInTimeException’”
The related code seems to be androidx/media3/session/MediaButtonReceiver.java which contains many helpful comments:
if (SDK_INT >= 26) {
if (keyEvent.getKeyCode() != KeyEvent.KEYCODE_MEDIA_PLAY
&& keyEvent.getKeyCode() != KeyEvent.KEYCODE_MEDIA_PLAY_PAUSE
&& keyEvent.getKeyCode() != KeyEvent.KEYCODE_HEADSETHOOK) {
// Starting with Android 8 (API 26), the service must be started immediately in the
// foreground when being started. Also starting with Android 8, the system sends media
// button intents to this receiver only when the session is released or not active, meaning
// the service is not running. Hence we only accept a PLAY command here that ensures that
// playback is started and the MediaSessionService/MediaLibraryService is put into the
// foreground (see https://developer.android.com/media/legacy/media-buttons and
// https://developer.android.com/about/versions/oreo/android-8.0-changes#back-all).
Log.w(
TAG,
"Ignore key event that is not a `play` command on API 26 or above to avoid an"
+ " 'ForegroundServiceDidNotStartInTimeException'");
return;
}
}
I should add that this logging occurs even when AntennaPod is clearly running:
Open the app
Minimise the app
Hit rewind in the widget
Still see "“Ignore key event that is not a `play` command” in logcat