장치에서 테스트
다운로드한 __CAPGO_KEEP_0__ 앱을 열고 QR코드 __CAPGO_KEEP_1__를 스캔하세요.
@ capgo/capacitor-appsflyer
Capacitor 플러그인은 앱스 플라이어의 속성, 분석, 그리고 깊이 링크를 위한 플러그입니다.
설치
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는 raw-data 보고서와 Postback API에서 사용할 수 있습니다.
예시 사용
initSDK
SDK 초기화 및 시작을 위해 이 메서드를 사용하세요. 이 API은 앱이 시작되면 즉시 호출되어야 합니다.
import { AppsFlyer } from '@capgo/capacitor-appsflyer';
await AppsFlyer.initSDK({} as AFInit);
startSDK
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와 교차 참조할 수 있습니다. 이 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/
Using @capgo/capacitor-appsflyer
앱스 플라이어를 사용하는 경우 Using @capgo/capacitor-appsflyer Capgo 플러그인 작업을 계획하기 위해, @capgo/capacitor-appsflyer Capgo 플러그인 @capgo/capacitor-appsflyer 구현 세부 사항 시작하기 시작하기 구현 세부 사항 Capgo 플러그인 디렉토리 Capgo 플러그인 디렉토리에서 제품 워크플로우 Capacitor Plugins by Capgo for the implementation detail in Capacitor Plugins by Capgo, and __CAPGO_KEEP_0__ 플러그인 @__CAPGO_KEEP_1__ 구현 세부 사항, 플러그인 추가 또는 업데이트