Need clarification on using Apple MapKit in CarPlay

I have developed a mobile app using SwiftUI that supports GoogleMaps. Now I am in the process of building a CarPlay application. I assume CarPlay only supports Apple MapKit, as I could not find any way to integrate the Google Maps. Below are few queries,

  1. Could you please guide me on how I can obtain the user's current location on the CarPlay app launch? Is there a way CarPlay can get the details from the mobile app(not pretty sure as its using Google Maps)?

  2. If the user is logged out from the mobile app, what is the flow in CarPlay? Do we have any standard login page asking user to login to the mobile app first?

  3. Is there any UI asking the user to capture the location in CarPlay?

This is my first CarPlay app. Kindly guide me to a document or so that covers these details.

Thanks a ton!!

Now I am in the process of building a CarPlay application. I assume CarPlay only supports Apple MapKit, as I could not find any way to integrate the Google Maps. Below are few queries,

What category was your CarPlay app approved for? Only apps in the Navigation category may insert their own mapping layers using CPMapTemplate. All other CarPlay apps use CPPointOfInterestTemplate, which includes MapKit tiles for free on your behalf.

Could you please guide me on how I can obtain the user's current location on the CarPlay app launch? Is there a way CarPlay can get the details from the mobile app(not pretty sure as its using Google Maps)?

CarPlay is the same app, running in the same process, as your app on iOS. You should use CoreLocation to fetch the user's location, and it will be available both for CarPlay and on the phone app.

If the user is logged out from the mobile app, what is the flow in CarPlay? Do we have any standard login page asking user to login to the mobile app first?

A common pattern here is to show a CPAlertTemplate alerting the user that, when safe and they are no longer driving, they should log into your app on the phone.

Is there any UI asking the user to capture the location in CarPlay?

This is also commonly handled with CPAlertTemplate. If the user hasn't granted your app location permissions, they will need to, when safe and they are no longer driving, approve the location permission on the phone.

Need clarification on using Apple MapKit in CarPlay
 
 
Q