Skip to content
pubscout

appsflyer_sdk

7.0.4, released 3 weeks ago by appsflyer.com

Flutter plugin for the AppsFlyer mobile attribution and analytics SDK.

WASM-readyRock solid
$ flutter pub add appsflyer_sdk
Source repository

What it does

Integrates the AppsFlyer mobile attribution and analytics SDK into Flutter apps on Android and iOS. It allows tracking in-app events, ad revenue, deep linking, and campaign measurement. It handles SDK initialization, session management, and purchases via an RPC layer.

AI-written summary of version 7.0.4, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need mobile attribution and app installation tracking
  • You want to measure campaign performance and ad revenue
  • You need deep linking support via AppsFlyer

Skip it when

  • Your app targets outdated Flutter versions below 3.35.0
  • You use alternative attribution SDKs and do not want to bundle AppsFlyer

Strengths

  • Official plugin supported directly by AppsFlyer
  • Bundles latest Android and iOS AppsFlyer SDKs and purchase connectors
  • Comprehensive documentation and guides for migration and setup

Weaknesses

  • Strict version pinning on Android toolchain and Kotlin/Gradle plugins
  • Major breaking changes in v7 requiring significant migration effort

Setup

Kind
Plugin (native code)
Effort
High
Code generation
Yes (build_runner)
Direct dependencies
1

Requires minimum Flutter 3.35.0, Dart 3.9.0, Android API 21, and iOS 13.0. Requires configuring developer keys, app IDs, deep link listeners, and matching strict Android Gradle and Kotlin plugin versions.

final appsflyerSdk = AppsFlyerSdk.instance;
await appsflyerSdk.init(
  devKey: '<DEV_KEY>',
  appId: '<APP_ID>',
);
await appsflyerSdk.registerSessionReadyListener(() async {
  await appsflyerSdk.start();
});

Alternatives

Packages that do the same job and could replace appsflyer_sdk.

Works with

Packages commonly used together with appsflyer_sdk: ones it builds on, ones built on it, and its own family.