가이드
앱스 플라이어에 대한 튜토리얼
앱스 플라이어 플러그인을 사용하는 방법: @capgo/capacitor-appsflyer
Capacitor AppsFlyer attribution, 분석 및 심층 링크 플러그인.
Install
bun add @capgo/capacitor-appsflyer
bunx cap sync
이 플러그인은 다음을 제공합니다.
initSDK- Use this method to initialize and start AppsFlyer SDK. This API should be called as soon as the app launched.startSDK- 수동 시작 모드에서만 AppsFlyer SDK를 시작하는 데 사용합니다.logEvent- 앱 내 이벤트를 로깅합니다.setCustomerUserId- 고객 ID를 설정하면 앱스 플라이어의 고유 ID와 다른 기기의 고유 ID와 교차 참조할 수 있습니다. 이 ID는 원시 데이터 보고서 및 Postback API에서 내부 ID와 교차 참조할 수 있습니다.
예제 사용
initSDK
Use this method to initialize and start AppsFlyer SDK. This API should be called as soon as the app launched.
import { AppsFlyer } from '@capgo/capacitor-appsflyer';
await AppsFlyer.initSDK({} as AFInit);
startSDK
AppsFlyer SDK를 수동 시작 모드에서만 시작하는 데 사용합니다.
import { AppsFlyer } from '@capgo/capacitor-appsflyer';
await AppsFlyer.startSDK();
logEvent
앱 내 이벤트를 로깅합니다.
import { AppsFlyer } from '@capgo/capacitor-appsflyer';
await AppsFlyer.logEvent({} as AFEvent);
setCustomerUserId
고객 ID를 설정하면 앱스 플라이어의 고유 ID와 다른 기기의 고유 ID와 교차 참조할 수 있습니다. 이 ID는 원시 데이터 보고서 및 Postback API에서 내부 ID와 교차 참조할 수 있습니다.
import { AppsFlyer } from '@capgo/capacitor-appsflyer';
await AppsFlyer.setCustomerUserId({} as AFCuid);
전체 참조
- GitHub: https://github.com/Cap-go/capacitor-appsflyer/
- 문서: /docs/plugins/appsflyer/