Skip to content
pubscout

flutter_install_referrer

3.0.1, released 2 months ago by all-win-solutions.com

Detects how a Flutter app was installed on Android or iOS.

WASM-ready
$ flutter pub add flutter_install_referrer
Source repository

What it does

This plugin exposes the installation source (Google Play, App Store, TestFlight, etc.) and the package name or app ID. It provides both a Future API and widget helpers to consume the result.

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

Use it when

  • You need to know the store or source for analytics or attribution.
  • You want to conditionally enable features based on the installation channel.
  • You need to log installation data for marketing campaigns.

Skip it when

  • Your app is only installed from a single known source and you don't need to track it.
  • You are targeting only one platform and prefer a simpler solution.

Strengths

  • Modern Kotlin/Swift implementation with coroutine support.
  • Cross‑platform (Android & iOS) with minimal code.
  • Widget helpers for easy integration into UI.
  • Supports Swift Package Manager and updated Gradle/Kotlin DSL.

Weaknesses

  • Requires Android minSdk 24 and Flutter 3.44 / Dart 3.12.
  • No support for other platforms (e.g., web, desktop).
  • Relies on native platform APIs, so debugging can be harder.

Setup

Kind
Plugin (native code)
Effort
Medium
Code generation
No
Direct dependencies
1

Add dependency to pubspec, import package, call InstallReferrer.referrer or use widget helpers. No build_runner or codegen needed.

```dart
import 'package:flutter_install_referrer/flutter_install_referrer.dart';

Future<void> getReferrer() async {
  final app = await InstallReferrer.referrer;
  print('Package: ${app?.packageName}');
  print('Referrer: ${app?.referrer}');
}
```

Alternatives

Packages that do the same job and could replace flutter_install_referrer.

  • dartdosh

    Flutter build and release CLI to automate version bumping, file naming, and uploads.

  • flutter_flavor

    Configure and define dynamic variables and UI banners for different app flavors.