Jakub Truhlář Jakub Truhlář - 2 months ago 55
Objective-C Question

MPNowPlayingInfoCenter remote controls react wrongly in iOS 10

In iOS 10, the control center UI was reworked and since this time, play/pause control buttons react differently.

Content that is not pausable should not change play/pause buttons in control center on every tap.

Before iOS 10, it was probably checking

MPNowPlayingInfoPropertyPlaybackRate
and if a content was not paused, it did not change remote controls. In iOS 10, it changes everytime instantly ignoring
MPNowPlayingInfoPropertyPlaybackRate
.

Answer

Ok, the key is to work with MPRemoteCommandCenter instead of remoteControlReceivedWithEvent.

Comments