MPRemoteCommandCenter likeCommand and dislikeCommand

I'm trying to show likeCommand and dislikeCommand on the Lock Screen of a music player without success.

Are they still supported ? Is there any special configuration on the player or the track for them to show?

My current code which works for playCommand looks like this

        MPRemoteCommandCenter.shared().likeCommand.addTarget { [unowned self] _ in

            if isPlaying {

                return .success

            }

            return .commandFailed

        }

MPRemoteCommandCenter is not part of AVFoundation, so you'll likely have better luck posting in the MP section of the forums.

MPRemoteCommandCenter likeCommand and dislikeCommand
 
 
Q