Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MPNowPlayingInfoCenter doesn't work with the simulator [closed]

I've just been wrestling with MPNowPlayingInfoCenter. After some time, I could get it working on my iPhone.

But it doesn't work on the simulator (iOS 6 and 7 tested). Am I doing something wrong, or is it explicitly not supported on the simulator?

like image 917
aspyct Avatar asked Nov 11 '22 17:11

aspyct


1 Answers

Note from the Apple docs:

In iOS Simulator, always include the MPNowPlayingInfoPropertyPlaybackRate key in your nowPlayingInfo dictionary. The simulator uses the value of that key to update the playback progress it displays in Control Center and other simulator-based interfaces. Set the value of the key to 0 for a track that is paused or stopped. Set the value to a positive number for a track that is playing.

Event Handling Guide for UIKit Apps: Providing Now Playing Information

like image 91
Jauzee Avatar answered Nov 15 '22 06:11

Jauzee