CarPlay CPNowPlayingTemplate show wrong command buttons

i have a CarPlay implementation eand I want to show previous/next track button on player UI

MPRemoteCommandCenter.shared().seekForwardCommand.isEnabled = false
MPRemoteCommandCenter.shared().seekBackwardCommand.isEnabled = false

MPRemoteCommandCenter.shared().previousTrackCommand.isEnabled = true
MPRemoteCommandCenter.shared().nextTrackCommand.isEnabled = true

It works correctly on CarPlay simulator , but on some car only SEEK button are shown .

I have to suppose that it is that a problem on the car side , but I would ask about your opinion , maybe there is some pieces I'm missing

Answered by Frameworks Engineer in 821444022

Hi, the skip forward/back buttons (10 seconds, in this example) are usually meant for podcasts or other spoken-audio content, like books. To show the regular next item/previous item buttons instead, your app should make sure to remove any preferredIntervals on your MPSkipIntervalCommand.

Hi, the skip forward/back buttons (10 seconds, in this example) are usually meant for podcasts or other spoken-audio content, like books. To show the regular next item/previous item buttons instead, your app should make sure to remove any preferredIntervals on your MPSkipIntervalCommand.

Hi after reading your answer I have realized that I was disabling the wrong commands , that is SeekCommand instead of SkipCommand

Now ,I have the disabled them all , and also I have also set preferredIntervals = [0] just to be double sure , but not sure if it remove any preferredInterval as you suggest I m' going to test on some car and let you know if it works , thank you

CarPlay CPNowPlayingTemplate show wrong command buttons
 
 
Q