Skip to content

[Android] notification is missing skip (±15s) buttons and the Previous button in a playlist #2677

Description

@FedericaGonzalez03

Describe the Bug

On Android, two remote-control buttons are missing from the notification / lock screen (both work fine on iOS):

  1. The skip forward / backward (±15s) buttons never appear while the app is in the background.
  2. In a playlist (multi-track queue), only the Next button ever appears — the Previous button never shows, on any track (not just the first one). This used to work on v4, where I managed the Previous/Next controls manually (updating capabilities per track); after migrating to v5 the Previous button stopped showing up in the notification even when it's included in capabilities.

Steps To Reproduce

Issue 1 — skip buttons:

  1. Set up a single track with skip commands:
TrackPlayer.setCommands({
  capabilities: [PlayerCommand.PlayPause, PlayerCommand.Seek, PlayerCommand.SkipForward, PlayerCommand.SkipBackward],
  forwardInterval: 15,
  backwardInterval: 15,
});
  1. Start playback, send the app to the background, and look at the notification / lock screen.
  2. → The ±15s skip buttons are not shown (only play/pause). On iOS they appear correctly.

Issue 2 — Previous button in a playlist:

  1. Set up a queue with several tracks:
TrackPlayer.setCommands({
  capabilities: [PlayerCommand.PlayPause, PlayerCommand.Seek, PlayerCommand.Previous, PlayerCommand.Next],
});
  1. Start playback and skip to the 2nd or 3rd track.
  2. Look at the notification / lock screen.
  3. → Only Next is shown. Previous never appears, even when there is a previous track in the queue and Previous is set in capabilities. On iOS both appear correctly. This worked on v4 (I was updating the Previous/Next capabilities manually per track); it broke after upgrading to v5.

Environment Info:

  • Output of npx react-native info:
System:
  OS: macOS 26.5.1
Binaries:
  Node: 22.20.0
  Yarn: 1.22.22
  npm: 10.9.3
IDEs:
  Android Studio: 2025.1
Languages:
  Java: 17.0.17
npmPackages:
  react: 19.2.4
  react-native: 0.86.2
Android:
  hermesEnabled: true
  newArchEnabled: true
  • @rntp/player version: 5.8.0
  • Real device or simulator: Real device

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions