AppsFlyer module
Purpose
Section titled “Purpose”From JSDoc (src/module/appsflyer/AffiseAppsFlyer.ts:6):
Send AppsFlyer event data to Affise.
Module constant
Section titled “Module constant”AffiseModules.APPSFLYER = "AppsFlyer"(src/module/AffiseModules.ts:1-16)
TypeScript API
Section titled “TypeScript API”AffiseAppsFlyer (src/module/appsflyer/AffiseAppsFlyer.ts:6) implements AffiseModuleAppsFlyerApi (src/module/appsflyer/AffiseModuleAppsFlyerApi.ts:3):
Affise.module.appsFlyer.logEvent(eventName: string, eventValues: Record<string, any>): void// AffiseModuleAppsFlyerApi.ts:3-10Affise.module.appsFlyer.hasModule(): Promise<boolean>Pair every appsFlyer.logEvent call with a matching Affise.module.appsFlyer.logEvent call so the event is mirrored to Affise.
Installation
Section titled “Installation”Since 1.7.16 the module ships as its own npm package, affise-attribution-module-appsflyer (Android and iOS). Install it next to the core library:
npm install affise-attribution-libnpm install affise-attribution-module-appsflyerThe package only pulls in the native dependency (com.affise:module-appsflyer / AffiseModule/AppsFlyer at 1.7.16); its JS entry point is empty, so keep importing everything from affise-attribution-lib. Rebuild the native app (and run pod install on iOS) after installing.
Platform notes
Section titled “Platform notes”pod 'AffiseModule/AppsFlyer', '1.7.16'Android
Section titled “Android”implementation "com.affise:module-appsflyer:$affise_version"