iOSセットアップ
このプラグインのインストール手順とフルマークダウンガイドまでの手順を含むように設定プロンプトをコピーします。
iOS car support uses CarPlay templates. Apple must approve the CarPlay entitlement for your app category before the app can ship with CarPlay support.
Info.plist scene
Section titled “Info.plist scene”CarPlayシーンの設定を追加し、プラグインシーンデリゲートに指示します。 ios/App/App/Info.plist と指示します。
For Swift Package Manager, use:
<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>For CocoaPods, the delegate module is commonly:
<string>CapgoCapacitorAuto.AutoCarPlaySceneDelegate</string>Entitlement
Section titled “Entitlement”Request the CarPlay の特権をアプリ カテゴリで利用する用途に合わせて申請してください。 プラグインはシンプルな CPListTemplateが表示されますが、Apple は生産用配布に許可されるテンプレートとカテゴリを決定します。
Sync
タイトル「Sync」npx cap sync ios動作
タイトル「動作」setRootTemplate車用ディスプレイが接続されたときに、CarPlay リスト テンプレートを更新します。- CarPlay の行選択は
carActionを JavaScript に送信します。 - CarPlay が WebView リスナーが準備されていないときに接続されると、プラグインがアタッチされたときに保持されたイベントが送信されます。
Limits
LimitsCarPlay does not render your Capacitor WebView. Keep car rows short and use them as native intent triggers for phone app logic.
CarPlayでは__CAPGO_KEEP_0__ WebViewをレンダリングせず、車内画面の行数を短くし、電話アプリのロジックを使用するnative インテントトリガーとして使用してください。
Section titled “Keep going from iOS setup”If you are using iOS setup iOS設定を使用してnative プラグインの作業を計画している場合、__CAPGO_KEEP_0__-autoを使用してnative 能力と接続してください。 Using @capgo/capacitor-auto for the native capability in Using @capgo/capacitor-auto, Capgo プラグインディレクトリ for the product workflow in Capgo Plugin Directory, Capacitor Plugins by Capgo for the implementation detail in Capacitor Plugins by Capgo, __CAPGO_KEEP_0__ プラグイン __CAPGO_KEEP_1__ によって プラグインの追加または更新 プラグインの追加または更新の実装詳細については、