Skip to main content

tapapplink 0.1.1 copy "tapapplink: ^0.1.1" to clipboard
tapapplink: ^0.1.1 copied to clipboard

Tap App Link attribution SDK for Flutter apps.

Tap App Link Flutter SDK #

Attribution SDK for Flutter. Call configure, trackInstall, and setAppUserId with the same billing user id your webhook provider sends.

Install #

dependencies:
  tapapplink: ^0.1.0

Then flutter pub get.

Usage #

import 'package:flutter/foundation.dart';
import 'package:tapapplink/tapapplink.dart';

TapAppLink.configure(TapAppLinkConfig(
  publicKey: 'etk_live_…',
  environment: kDebugMode
      ? TapAppLinkEnvironment.sandbox
      : TapAppLinkEnvironment.production,
));

await TapAppLink.trackInstall();
await TapAppLink.setAppUserId(await Purchases.appUserID);

final offer = TapAppLink.getOffer();
await TapAppLink.applyCode('SARAH10');

trackInstall() is safe on every launch — it only records once per install. Call resetForTesting() in debug builds before repeating a match test on the same install.

Purchases are attributed through billing webhooks. Leave out a client trackPurchase call.

License #

MIT

0
likes
0
points
333
downloads

Publisher

unverified uploader

Weekly Downloads

Tap App Link attribution SDK for Flutter apps.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, http

More

Packages that depend on tapapplink