iOS 설정
설치 단계와 이 플러그인의 전체 마크다운 가이드를 포함한 설정 프롬프트를 복사합니다.
iOS 차량 지원은 CarPlay 템플릿을 사용합니다. 애플은 앱 카테고리의 CarPlay 특권을 승인해야 앱이 CarPlay 지원과 함께 배포될 수 있습니다.
Info.plist scene
Section titled “Info.plist scene”CarPlay 화면 구성 추가하기 ios/App/App/Info.plist plugin scene delegate로 설정하세요.
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를 사용하는 경우, delegate 모듈은 일반적으로:
<string>CapgoCapacitorAuto.AutoCarPlaySceneDelegate</string>앱 카테고리와 일치하는 사용 사례에 맞는 CarPlay 권한을 요청하세요. 플러그인은 간단한 CPListTemplate하지만 애플은 생산 배포를 위해 허용되는 템플릿과 카테고리를 결정합니다.
npx cap sync iosBehavior
Section titled “Behavior”setRootTemplate자동 업데이트로 차량 디스플레이가 연결되었을 때 CarPlay 목록 템플릿을 업데이트합니다.- CarPlay row 선택이 JavaScript로 전송됩니다.
carAction차량 디스플레이가 웹 뷰 리스너가 준비되기 전에 연결되면, 플러그인이 연결될 때 보관된 이벤트가 전달됩니다. - Limits
Section titled “Limits”
CarPlay는 __CAPGO_KEEP_0__ 웹 뷰를 렌더링하지 않습니다. 차량 행을 짧게 유지하고 전화 앱 논리를 위해 네이티브 인텐트 트리거로 사용하세요.CarPlay does not render your Capacitor WebView. Keep car rows short and use them as native intent triggers for phone app logic.
iOS 설정에서 계속 진행하세요
iOS 설정에서 계속 진행하는 방법iOS 설정을 사용 중이라면 iOS 설정 Capacitor를 사용하여 네이티브 플러그인 작업을 계획하고 있다면 Using @capgo/capacitor-auto for the native capability in Using @capgo/capacitor-auto, Capgo Plugin Directory for the product workflow in Capgo Plugin Directory, Capacitor Plugins by Capgo for the implementation detail in Capacitor Plugins by Capgo, 플러그인 추가 또는 업데이트 구현 세부 정보에 대한 추가 또는 업데이트 플러그인에 대해 아이오닉 엔터프라이즈 플러그인 대체 아이오닉 엔터프라이즈 플러그인 대체의 제품 워크플로에 대해