appsflyer_sdk
7.0.4, released 3 weeks ago by appsflyer.com
Flutter plugin for the AppsFlyer mobile attribution and analytics SDK.
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.
- sentry_flutter
Sentry SDK for Flutter to capture errors, crashes and performance data across platforms.
95Compare - facebook_app_events
Flutter plugin to log Facebook App Events for ad measurement and attribution.
90Compare - launchdarkly_flutter_client_sdk
Official LaunchDarkly client-side feature flag SDK for Flutter.
90Compare - fvm
CLI to manage Flutter SDK versions per project
87Compare
Works with
Packages commonly used together with appsflyer_sdk: ones it builds on, ones built on it, and its own family.