Widget skip on 3.12.0-beta1

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.

Tracking this here: Widget skipping does not work with new playback service · Issue #8454 · AntennaPod/AntennaPod · GitHub

I noticed this too - in my case I have the buttons set for rewind and fast forward and they too don’t work.

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

PS: Using develop branch from github