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.
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.
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.
For the Transition to the Now Playing tab to work on both the simulator and an actual car, you need to make sure to
beginReceivingRemoteControlEvents
on the current UIApplication
, andnowPlayingIdentifier
on the MPPlayableContentManager
before calling the completion handler in playableContentManager:initiatePlaybackOfContentItemAtIndexPath:completionHandler:
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With