Skip to content

iOS 설정

GitHub

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

CarPlay 장면 구성 추가하기 ios/App/App/Info.plist CarPlay 장면 구성에 대해 설명하고 플러그인 장면 대리인으로 설정하세요.

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>

앱 카테고리가 사용 사례에 맞는 CarPlay 권한을 요청하세요. 플러그인은 간단한 CPListTemplate하지만 애플은 생산 배포를 위해 허용되는 템플릿과 카테고리를 결정합니다.

Sync

Sync
Terminal window
npx cap sync ios

Behavior

Behavior
  • 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를 렌더링하지 않습니다. 차량 행을 짧게 유지하고 전화 앱 논리를 위해 네이티브 인텐트 트리거로 사용하십시오.

iOS 설정에서 계속 진행하세요

iOS 설정에서 계속 진행하는 방법

iOS 설정을 사용 중이라면 iOS 설정 Capacitor를 사용하여 네이티브 플러그인 작업을 계획하고 싶다면, 그것을 Using @capgo/capacitor-auto Capacitor를 사용하여 네이티브 기능을 사용하는 경우 Using @capgo/capacitor-auto Capgo 플러그인 디렉토리 Capacitor를 사용하여 제품 워크플로우를 사용하는 경우 Capgo 플러그인 디렉토리 Capacitor 플러그인들에 의해 Capgo Capacitor를 사용하여 구현 세부 정보를 사용하는 경우 Capacitor 플러그인들에 의해 Capgo 플러그인 추가 또는 업데이트 iOS 구현 세부 사항에 대한 정보는 Adding or Updating Plugins 항목에서 찾을 수 있습니다. Ionic Enterprise Plugin 대체 옵션 iOS 플러그인 워크플로에 대한 정보는 Ionic Enterprise Plugin Alternatives 항목에서 찾을 수 있습니다.