Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to show the Now Playing Tab in CarPlay?

Tags:

ios

carplay

I'm working on an app that will support CarPlay.It's an audio app.

I'm able to show 2 tabs (favourite and recommended) though I just don't know how to show the Now Playing Tab. I just cannot find any info regarding this. Do I have to manually show it, and the, how do I push? Do I have to do it manually? If so, what's the viewcontroller?

Thanks.

like image 762
miya Avatar asked Jan 29 '18 05:01

miya


People also ask

What is the Now Playing app on CarPlay?

10. See What's Playing. You can easily see full details on whatever song, podcast, or audiobook is currently playing via an app called Now Playing. The Now Playing app can be accessed from the home screen, or if you're already in an audio app, just tap the audio graph icon in the upper-right corner.

Why don t all my apps show up on Apple CarPlay?

If your iPhone isn't detected by CarPlay, make sure that CarPlay isn't restricted. Go to Settings > Screen Time > Content & Privacy Restrictions, tap Allowed Apps, and make sure that CarPlay is enabled. Go to Settings > General > CarPlay, tap your Car, then tap Forget This Car. Then set up CarPlay again.


1 Answers

For the Transition to the Now Playing tab to work on both the simulator and an actual car, you need to make sure to

  • call beginReceivingRemoteControlEvents on the current UIApplication, and
  • set a nowPlayingIdentifier on the MPPlayableContentManager

before calling the completion handler in playableContentManager:initiatePlaybackOfContentItemAtIndexPath:completionHandler:.

like image 174
DrMickeyLauer Avatar answered Sep 30 '22 17:09

DrMickeyLauer