メインコンテンツにジャンプ

iOS設定

GitHub

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のディープリンクを転送する

ホストアプリが入力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 Using @Capgo/__CAPGO_KEEP_1__-contentsquare Capgo プラグイン ディレクトリ Capacitor Plugins by Capgo for the implementation detail in Capacitor Plugins by Capgo, __CAPGO_KEEP_1__ プラグインの追加または更新 Ionic Enterprise プラグインの代替 Ionic Enterprise プラグインの製品ワークフローについて