Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS Simulator "Now Playing" screen missing

Tags:

xcode

ios

swift

I had developed my app for iOS 9+ devices few months back and at that time MPNowPlayingInfoCenter was working as expected. But recently I updated my XCode also to latest 9.3 and due to some Pods library being updated I had to change the Deployment Target to 10.0. Since then the MPNowPlayingInfoCenter stops working and never shows up on lock screen on any Simulator devices.

MPNowPlayingInfoCenter.default().nowPlayingInfo = [
            MPMediaItemPropertyTitle: self.playerItem.title.br2Sp.stripTags,
            MPMediaItemPropertyArtist: self.playerItem.artist.br2Sp.stripTags,
            MPNowPlayingInfoPropertyPlaybackRate: player.rate
        ]

Any idea what has changed since then?

P.S. By stops working I mean that my above code no longer displays the Now Playing info on lock screen.

like image 976
codelearner Avatar asked May 07 '18 14:05

codelearner


People also ask

How do I open the console in Simulation?

In American Truck Simulator and Euro Truck Simulator 2, the console can be opened by pressing "~", but it has to be enabled first.

How do you toggle Dark mode in iOS simulator?

Testing Dark Mode on an iOS SimulatorGo to Settings. Select Dark Appearance.

How do I enable accessibility in simulator?

To do this, set keyboard focus on the simulator window then enable VoiceOver. From here you'll be able to use the Virtual Cursor to move between items on the screen. In order to interact with clickable items in the app, use the VO + Space key.


1 Answers

After searching a lot, I finally came to know that iOS Simulator v11.3 does not have support yet for Control Panel and it shows a frosted screen without any controls. I have downloaded iOS Simulator v10.3.1 and its now showing up.

like image 70
codelearner Avatar answered Oct 08 '22 05:10

codelearner