MPNowPlayingInfoCenter doesn't work with the simulator [closed]
Asked Answered
F

1

6

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?

Fujimoto answered 25/11, 2013 at 16:25 Comment(0)
S
0

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

Strasbourg answered 12/11, 2016 at 18:42 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.