When to load CarPlay Data?

I have developed an Audio App for CarPlay. Currently I load CarPlay data for every user at the launch of the application.


I'm looking for a better way to do so such as only loading the data if a user is going to use CarPlay.


Is there some sort of system message that happens when CarPlay is connected?


I understand there is the


beginLoadingChildItems(at:completionHandler:)


method, but this is only called after an app is started and a content item is selected.


Any ideas?

Replies

CarPlay neither seem to offer connection notifications nor does it register itself as an external UIScreen.


I'm afraid you have to load the content of the first navigational layer at startup – I do triggered by the

playableContentManager:didUpdateContext: