コンテンツにスキップ

iOS設定

GitHub

Capgoのプラグインをインストールすると、Contentsquareのトラッキングが自動的に開始されますが、iOSのインアプリ機能であるSDKログ、スクリーンショットのキャプチャ、リプレイの設定は、上流のURLハンドリングの設定が必要です。

1. URLスキームを追加する

1. URLスキームを追加する

追加 cs-$(PRODUCT_BUNDLE_IDENTIFIER) アプリのURLスキームに追加する Info.plist.

<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLSchemes</key>
<array>
<string>cs-$(PRODUCT_BUNDLE_IDENTIFIER)</string>
</array>
</dict>
</array>
2. Contentsquareのディープリンクを転送する

ホストアプリがincoming URLを処理する場所で、CapacitorでディープリンクをSDKに転送する

AppDelegate

AppDelegate
import ContentsquareModule
func application(
_ app: UIApplication,
open url: URL,
options: [UIApplication.OpenURLOptionsKey : Any] = [:]
) -> Bool {
Contentsquare.handle(url: url)
return true
}
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)
}
  • デバイスまたはシミュレータでアプリを起動してください。
  • XcodeまたはConsoleログをフィルタリングする CSLIB.
  • Contentsquareモバイルツールをオープンし、インストールが正常に完了していることを確認するためにインアプリ機能をトリガーしてください。

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

iOS セットアップから続ける

あなたが使用している iOS セットアップ ネイティブ プラグインの作業を計画するために Using @capgo/capacitor-contentsquare Using @capgo/capacitor-contentsquare Capgo Plugin Directory Capgo Plugin Directory Capacitor Plugins by Capgo Capacitor Plugins by Capgo プラグインの追加または更新 実装詳細のためのプラグインの追加または更新 Ionic Enterprise プラグインの代替 Ionic Enterprise プラグインの代替の製品ワークフローについて