메뉴로 이동

iOS 설정

GitHub

iOS 차량 지원은 CarPlay 템플릿을 사용합니다. 애플은 앱 카테고리에 대한 CarPlay 특권을 승인해야 하므로 앱이 CarPlay 지원과 함께 배포할 수 있습니다.

Info.plist scene

Info.plist scene

CarPlay 장면 구성 추가 ios/App/App/Info.plist 플러그인 장면 위임자로 포인팅하세요.

Swift Package Manager를 사용하는 경우:

<key>UIApplicationSceneManifest</key>
<dict>
<key>UIApplicationSupportsMultipleScenes</key>
<true/>
<key>UISceneConfigurations</key>
<dict>
<key>CPTemplateApplicationSceneSessionRoleApplication</key>
<array>
<dict>
<key>UISceneClassName</key>
<string>CPTemplateApplicationScene</string>
<key>UISceneDelegateClassName</key>
<string>AutoPlugin.AutoCarPlaySceneDelegate</string>
</dict>
</array>
</dict>
</dict>

CocoaPods의 위임 모듈은 일반적으로:

<string>CapgoCapacitorAuto.AutoCarPlaySceneDelegate</string>

특권

특권

Request the CarPlay entitlement for the app category that matches your use case. The plugin renders a simple CPListTemplatebut Apple still decides which templates and categories are allowed for production distribution.

Terminal window
npx cap sync ios
  • setRootTemplate updates the CarPlay list template when the car display is connected.
  • CarPlay row selection emits carAction to JavaScript.
  • If CarPlay connects before the WebView listener is ready, retained events are delivered when the plugin attaches.

CarPlay는 Capacitor WebView를 렌더링하지 않습니다. 차량 행을 짧게 유지하고 native intent 트리거로 전화 앱 로직을 사용하세요.

iOS 설정에서 계속

iOS 설정에서 계속 섹션

iOS 설정을 사용 중이라면 iOS 설정 native 플러그인 작업을 계획하기 위해 native plugin과 연결하세요. @capgo/capacitor-auto를 사용하여 @capgo/capacitor-auto를 사용하여 native 기능을 사용하세요. Capgo 플러그인 디렉토리 Capgo 플러그인 디렉토리에서 제품 워크플로우를 사용하세요. Capacitor 플러그인들에 의해 Capgo Capacitor 플러그인들에 의해 Capgo의 구현 세부 사항에 대해 플러그인 추가 또는 업데이트 플러그인 추가 또는 업데이트의 구현 세부 사항에 대해, 및 Ionic Enterprise 플러그인 대체 Ionic Enterprise 플러그인 대체의 제품 워크플로에 대해.