広告 ID ライブラリの追加
アプリケーションレベルの build.gradle ファイルに以下の依存関係を追加します。上記の API は、プラグインバージョン 1.0.2 以降でのみ利用できます。それより古いバージョンでは、広告 ID トラッキングはデフォルトで有効になっています。
Documentation Index
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
正確なデバイス分析のために、Capacitor アプリで広告 ID トラッキングを有効にします。
implementation("com.google.android.gms:play-services-ads-identifier:18.0.1")
import { MoECapacitorCore } from 'capacitor-moengage-core'
MoECapacitorCore.enableAdIdTracking({ appId: "YOUR_WORKSPACE_ID" });
import { MoECapacitorCore } from 'capacitor-moengage-core'
MoECapacitorCore.disableAdIdTracking({ appId: "YOUR_WORKSPACE_ID" });
Suggestions