Skip to content

Latest commit

 

History

6 Commits

Folders and files

Repository files navigation

flutter_attribution_plugin

A lightweight Flutter plugin for accessing native mobile attribution data

  • 🍏 Apple Search Ads Attribution Token (iOS 14.3+)
  • 🤖 Google Play Install Referrer URL (Android)
  • ⚖️ MIT license

No AppsFlyer, Adjust, Branch or other third-party attribution SDKs required

Installation

flutter pub add flutter_attribution_plugin

Usage

import 'dart:io'; // Required for Platform check
import 'package:flutter_attribution_plugin/flutter_attribution_plugin.dart';

String? attributionToken;
String? referrerUrl;

if (Platform.isIOS) {
  // Returns Apple Search Ads token as string value
  attributionToken = await AttributionPlugin.getIosAttributionToken();
} else if (Platform.isAndroid) {
  // Returns raw Google Play Install Referrer URL string
  referrerUrl = await AttributionPlugin.getAndroidReferrerUrl();
}

iOS Requirements

Android Requirements

📄 License

This project is distributed under the terms of the MIT license

Need help integrating it?

I can integrate it into your application 📩 inphinit.dev@gmail.com

Releases

Packages

Contributors

Languages