iOS設定
このプラグインのインストール手順とフル マークダウン ガイドを含むセットアップの質問をコピーします。
Contentsquareのトラッキングは、プラグインがインストールされたときに自動的に開始されますが、iOSのインアプリ機能であるSDKログ、スクリーンショットのキャプチャ、リプレイの設定は、上流のURLハンドリングの設定が必要です。
1. URLスキームを追加する
セクション: 1. 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のディープリンクを転送する
セクション: 2. Contentsquareのディープリンクを転送するWherever your Capacitor host app handles incoming URLs, forward them to the native SDK:
AppDelegate
セクション: AppDelegateimport 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) }}SwiftUI
「SwiftUI」セクションimport ContentsquareModule
.onOpenURL { url in Contentsquare.handle(url: url)}3. インストールの検証
「3. インストールの検証」セクション- デバイスまたはシミュレータでアプリを起動します。
- 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 プラグインの代替の製品ワークフローについて