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

Androidに関する注記

Android does not require extra host-app setup for the plugin itself. Once installed and synced, the plugin registers the main Capacitor WebViewIncludes install, sync, and the source markdown guide.

Android上でプラグインが何をするか

Android上でプラグインが何をするか
  • Capacitorをnative Contentsquare Capacitorに登録する WebView SDKをnative Contentsquare SDKに登録する
  • URL除外、PIIマスク、キャプチャされた要素セレクターなどの再生関連コマンドを公開する optIn, optOut, sendScreenName, sendTransactionURL除外、PIIマスク、キャプチャされた要素セレクターなどの再生関連コマンドを公開する
  • 検証のヒント

検証のヒント

nativeログを確認する

nativeログを確認する

Android Studioのフィルタ

Android Studioのフィルタ Logcat with:

CSLIB

アプリ起動時にネイティブのContentsquare SDK起動メッセージとWebViewブリッジの登録を確認してください。

import { ContentsquarePlugin } from '@capgo/capacitor-contentsquare';
await ContentsquarePlugin.optIn();
await ContentsquarePlugin.sendScreenName('Home');

少なくとも1つのスクリーンビューがなければ、Contentsquareではセッションを保持しません。

  • KeysはContentsquareによって512文字に制限されています。
  • 値は文字列または非負の整数でなければなりません。
  • セッションに値が欲しい場合は、再びアプリが前景に戻ったときに送信してください。