AppsFlyer の @capgo/capacitor-appsflyer を使用
Capacitor プラグインは、AppsFlyer のAttribution、Analytics、Deep Linkの機能を提供します。
インストール
bun add @capgo/capacitor-appsflyer
bunx cap sync
このプラグインが公開するもの
initSDK- このメソッドを使用して、AppsFlyer SDK を初期化して開始します。この API は、すぐにアプリを起動したときに呼び出す必要があります。startSDK- このメソッドを使用して、AppsFlyer SDK を手動で開始します。logEvent- インストール済みのアプリ内イベントをログします。setCustomerUserId- 自分の顧客IDを設定すると、自分のユニークIDをAppsFlyerのユニークIDと他のデバイスのIDと照合できます。このIDは、raw-dataレポートとPostback APIで利用できます。
例の使用
initSDK
- このメソッドを使用して、AppsFlyer SDK を初期化して開始します。この API は、すぐにアプリを起動したときに呼び出す必要があります。
import { AppsFlyer } from '@capgo/capacitor-appsflyer';
await AppsFlyer.initSDK({} as AFInit);
startSDK
Use this method to start AppsFlyer SDK, only on manual start mode.
import { AppsFlyer } from '@capgo/capacitor-appsflyer';
await AppsFlyer.startSDK();
logEvent
インストールイベントをログします。
import { AppsFlyer } from '@capgo/capacitor-appsflyer';
await AppsFlyer.logEvent({} as AFEvent);
setCustomerUserId
自分の顧客IDを設定すると、AppsFlyerのユニークIDと他のデバイスのIDとを照合できます。このIDは、raw-dataレポートとPostback APIで利用できます。
import { AppsFlyer } from '@capgo/capacitor-appsflyer';
await AppsFlyer.setCustomerUserId({} as AFCuid);
フルリファレンス
- GitHub: https://github.com/Cap-go/capacitor-appsflyer/
- ドキュメント: /docs/plugins/appsflyer/
Keep going from Using @capgo/capacitor-appsflyer
AppsFlyerを使用して続けてください。 Using @capgo/capacitor-appsflyer AppsFlyerを使用して続けてください。 https://capgo.com/Cap-go/capacitor-appsflyer/ Capacitor AppsFlyer の実装詳細については @capgo/capacitor-appsflyer にお見えとなります。 Getting Started Capacitor AppsFlyer の実装詳細については Getting Started にお見えとなります。 Capgo Plugin Directory for the product workflow in Capgo Plugin Directory, Capacitor Plugins by Capgo for the implementation detail in Capacitor Plugins by Capgo, and プラグインの追加または更新 Capacitor AppsFlyer の実装詳細についてはプラグインの追加または更新に於いてお見えとなります。