Posts

Post not yet marked as solved
1 Replies
549 Views
HiI have an app updated ready to go that adds support for CarPlay audio.I've noticed though that sometimes when the app starts it doesnt go well! I click the icon on the carplay screen and it starts to launch but then minimises itself as if the master app has crashed on the phone (but it hasn't). It can take a couple of presses of the icon, repeating this process before the app is stable to use.Is it that the iPhone app takes too long to start? Am i supposed to be calling additional methods on the DataSource protocol?Is there a way to get logging information from the headunit to see why it minimised the app?ThanksRich
Posted
by Rich Levy.
Last updated
.
Post marked as solved
2 Replies
868 Views
Hi all,I'm currently developing CarPlay support (iOS 11) for my audio app.I have the entitlement and have a version up and running, which I now want to refine.I'd like to display track numbers against playable media items just like the Music app on my CarPlay headunit does. These are nicely designed such that the track number appears where the art work would appear (ie it has it's own space) and the title and subtitle are nicely aligned to the right of it.My app provides a datasource using the MPPlayableContentDataSource protocol, which provides media information using the method MPPlayableContentDataSource which returns an MPContentItem. There are no properties here to indicate a track number.I have tried setting the MPMediaItemPropertyAlbumTrackNumber property on the content item, but this is not support by this class.I can add the track number to contentItem.title property, but that doesnt display in the same tidy way the Music app does. The subtitle text is then displayed underneath the track number. Because of the different font sizes, adding spaces to the subtitle looks messy.The only way I can think to do it is to render a track number as an image into the artwork, but there are so many things that need to be discovered about the headunit display to ensure a matching.I can't find anything in the documentation to support this, and it seems like a pretty standard thing to want to do with an audio app!Many thanks,Rich
Posted
by Rich Levy.
Last updated
.