Skip to content

AppsFlyer module

Artifact: com.affise:module-appsflyer (module-appsflyer/build.gradle:50).

implementation("com.affise:module-appsflyer:1.7.8")

Send AppsFlyer event data to Affise.

The consumer app is expected to also integrate the official AppsFlyer SDK — this module only delegates events.

Entry class: AppsFlyerModule : AffiseModule(), AffiseAppsFlyerApi (module-appsflyer/src/main/java/com/affise/attribution/module/appsflyer/AppsFlyerModule.kt:9).

Public API: AffiseAppsFlyerApi.logEvent(eventName: String, eventValues: Map<String, Any>) (attribution/src/main/java/com/affise/attribution/modules/appsflyer/AffiseAppsFlyerApi.kt:5-7).

Wrapper on Affise.Module:

  • Affise.Module.AppsFlyer.logEvent(...)attribution/src/main/java/com/affise/attribution/modules/attribution/AffiseAttributionModule.kt:17
  • Affise.Module.AppsFlyer.hasModule()
//AppsFlyer event data
val eventValues: Map<String, Any> = mapOf(
AFInAppEventParameterName.PRICE to 1234.56,
AFInAppEventParameterName.CONTENT_ID to "1234567",
)
// Send AppsFlyer event
AppsFlyerLib.getInstance().logEvent(
applicationContext,
AFInAppEventType.ADD_TO_WISH_LIST, eventValues
)
// Send AppsFlyer data to Affise
Affise.Module.AppsFlyer.logEvent(AFInAppEventType.ADD_TO_WISH_LIST, eventValues)

The module build.gradle does not declare the AppsFlyer SDK itself; your app must integrate AppsFlyer separately. No additional AndroidManifest.xml entries.

None — the module only delegates events.