@capgo/capacitor-appsflyer 사용
Capacitor 플러그인은 AppsFlyer Attribution, Analytics 및 Deep Link를 제공합니다.
설치
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를 교차 참조할 수 있습니다. 이 ID는 raw-data 보고서 및 Postback API에서 사용할 수 있습니다.
예시 사용
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를 AppsFlyer의 고유 ID와 다른 기기의 고유 ID와 연관지을 수 있도록 고객 ID를 설정합니다. 이 ID는 원시 데이터 보고서와 Postback API에서 사용할 수 있습니다.
import { AppsFlyer } from '@capgo/capacitor-appsflyer';
await AppsFlyer.setCustomerUserId({} as AFCuid);
전체 참조
- GitHub: https://github.com/Cap-go/capacitor-appsflyer/
- 문서: /docs/plugins/appsflyer/
AppsFlyer @capgo/capacitor-appsflyer을 계속 사용하세요.
이 방법을 사용하여 AppsFlyer @capgo/capacitor-appsflyer을 사용하여 자연 플러그인 작업을 계획하는 경우 @__CAPGO_KEEP_0__/__CAPGO_KEEP_1__-appsflyer을 연결하세요. @capgo/capacitor-appsflyer for the implementation detail in @capgo/capacitor-appsflyer, 시작하기 AppsFlyer 구현 세부 정보를 위해 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 플러그인 추가 또는 업데이트 구현 세부 정보를 위해