コンテンツにスキップ

iOS セットアップ

GitHub

Contentsquare tracking starts automatically once the plugin is installed, but iOS in-app features such as SDK logs, screenshot capture, and replay configuration still need the upstream URL handling setup.

追加 cs-$(PRODUCT_BUNDLE_IDENTIFIER) コンテンツスクエアのURLスキームをアプリのURLスキームに追加する Info.plist.

<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLSchemes</key>
<array>
<string>cs-$(PRODUCT_BUNDLE_IDENTIFIER)</string>
</array>
</dict>
</array>
セクション「2. コンテンツスクエアのディープリンクを転送する」

どこであなたの Capacitor ホストアプリがIncoming URLを受け取るかはあなた次第ですが、Incoming URLをNative SDKに転送してください。

AppDelegate

AppDelegate
import ContentsquareModule
func application(
_ app: UIApplication,
open url: URL,
options: [UIApplication.OpenURLOptionsKey : Any] = [:]
) -> Bool {
Contentsquare.handle(url: url)
return true
}

シーンデリゲート

__CAPGO_KEEP_0__
import ContentsquareModule
func scene(_ scene: UIScene, openURLContexts urlContexts: Set<UIOpenURLContext>) {
if let url = urlContexts.first?.url {
Contentsquare.handle(url: url)
}
}
import ContentsquareModule
.onOpenURL { url in
Contentsquare.handle(url: url)
}

3. インストールの検証

__CAPGO_KEEP_0__
  • デバイスまたはシミュレータでアプリを起動してください。
  • XcodeまたはConsoleログをフィルタリングしてください。 CSLIB.
  • Contentsquareモバイルツールを開き、インアプリ機能をトリガーして、ディープリンクが正しく処理されていることを確認します。

iOSセットアップから続けてください。

「iOSセットアップから続けてください。」

次に、次のいずれかを実行します。 iOSセットアップ iOSセットアップを使用して、ネイティブプラグインの作業を計画する場合、Contentsquareと接続します。 Using @capgo/capacitor-contentsquare Capgoのnative機能のために@capgo/capacitor-contentsquareを使用します。 @Capgo プラグインディレクトリを使用して、Contentsquareの製品ワークフローを実行します。 @Capgo プラグインを@__CAPGO_KEEP_1__で管理します。 @Capacitor プラグインを@Capgoで管理することで、Contentsquareの実装詳細を確認できます。 Capgoの実装詳細については、Capacitor プラグインによって Capgo で管理されます。 プラグインの追加または更新 プラグインの追加または更新の実装詳細について イオニック エンタープライズ プラグインの代替 イオニック エンタープライズ プラグインの製品ワークフローについて