MIT License - Apple Developer sample code Downloaded via Cupertino (https://github.com/mihaelamj/cupertino) |
||
|---|---|---|
| .. | ||
| Configuration | ||
| Hoagies | ||
| .gitignore | ||
| LICENSE.txt | ||
| README.md | ||
Integrating CarPlay with your quick-ordering app
This sample code project demonstrates how to display custom ordering options in a vehicle using CarPlay. The sample app integrates with the CarPlay framework by implementing CPTemplate subclasses, such as CPPointOfInterestTemplate and CPListTemplate. This sample's iOS app component provides a logging interface to help you understand the life cycle of a CarPlay app.
For more information about the app and how it works, see Integrating CarPlay with your quick-ordering app.
Configure the sample code project
CarPlay quick-ordering apps require a CarPlay quick-ordering entitlement, which you can request here. After Apple grants the entitlement, follow these steps:
-
Log in to your account on the Apple Developer website and create a new provisioning profile that includes the CarPlay quick ordering-app entitlement.
-
Import the newly created provisioning profile into Xcode.
-
Create an
Entitlements.plistfile in the project, if you don't have one already. -
Create a key for the CarPlay quick-ordering app entitlement as a Boolean. Make sure that the target project setting
CODE_SIGN_ENTITLEMENTShas the path of theEntitlements.plistfile.