Skip to content

[v5.0.0-alpha0] Missing properties in UpdateOptions (icon, color, colorized, pitchAlgorithm) #2553

Description

@ItsLhuis

In v4.1.2, UpdateOptions included several icon-related properties that are missing in v5.0.0-alpha0:

v4.1.2 - Available properties:

TrackPlayer.updateOptions({
  icon: require('./notification-icon.png'),
  playIcon: require('./play-icon.png'),
  pauseIcon: require('./pause-icon.png'),
  stopIcon: require('./stop-icon.png'),
  previousIcon: require('./previous-icon.png'),
  nextIcon: require('./next-icon.png'),
  rewindIcon: require('./rewind-icon.png'),
  forwardIcon: require('./forward-icon.png'),
  compactCapabilities: [Capability.Play, Capability.Pause],
  // ...
});

v5.0.0-alpha0 - Removed properties:

  • icon - Custom notification icon
  • playIcon - Custom play button icon
  • pauseIcon - Custom pause button icon
  • stopIcon - Custom stop button icon
  • previousIcon - Custom previous button icon
  • nextIcon - Custom next button icon
  • rewindIcon - Custom jump backward button icon
  • forwardIcon - Custom jump forward button icon
  • compactCapabilities - Buttons shown in compact notification

Documentation comparison:

Questions:

  1. Is this removal intentional or an oversight in the alpha?
  2. If intentional, what's the migration path for customizing notification icons?
  3. The v5 docs still mention "¹ - The custom icons will only work in release builds" but all icon properties are missing - is this note outdated?

Environment:

  • RNTP version: 5.0.0-alpha0
  • Comparing with: 4.1.2 stable
  • Platform: Android

Additional context:
These properties were commonly used for customizing Android notification appearance with custom icons. The removal of compactCapabilities also affects notification layout control. Understanding if they're permanently removed or temporarily unavailable would help with migration planning.

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