Skip to content

iOS設定

GitHub

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

追加 cs-$(PRODUCT_BUNDLE_IDENTIFIER) Xcodeまたはホストアプリの Info.plist.

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

Wherever your Capacitor host app handles incoming URLs, forward them to the native SDK:

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.
  • コンテンツスクエアのモバイルツールをオープンし、インスタントフィーチャーをトリガーして、デープリンクが正しく処理されていることを確認します。

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_0__ プラグイン プラグインの追加または更新 Ionic Enterprise プラグインの代替 Ionic Enterprise プラグインの代替の製品ワークフローについて