captureReferral method

  1. @override
Future<String?> captureReferral()
override

Reads the install referral code, once, on first launch.

Returns null when the platform has no equivalent (iOS) or no referrer was present (organic install). Null is a normal result, not an error.

Implementation

@override
Future<String?> captureReferral() async {
  captureCount++;
  return referral;
}