ulynx (Flutter)

The Flutter SDK for ulynx deferred deep linking.

Install

dependencies:
  ulynx: ^0.2.0

Usage

import 'package:ulynx/ulynx.dart';

final client = UlynxClient();

// First launch: resolve a deferred link (reads the install token, calls the engine).
final deferred = await client.resolveDeferredLink();
if (deferred != null) {
  // route on deferred.shortCode / deferred.destinationUrl
}

// Incoming app link (e.g. from app_links):
final link = client.linkFromUrl(incomingUrl);
if (link != null) {
  client.reportOpen(link); // fire-and-forget attribution
}

The default TokenSource reads the iOS clipboard / Android Play Install Referrer. Inject a custom TokenSource or http.Client for testing.

Deferred resolution reads the clipboard only on the first launch after install (persisted via shared_preferences), so iOS prompts for paste at most once.

License

MIT

Libraries

ulynx
ulynx Flutter SDK — deferred deep linking.