Skip to main content

Deferred Deep Linking

Deferred deep linking happens when a user clicks a Trackier URL but doesn't have your app installed. The URL redirects to the app store, and when the user installs and opens the app, the SDK retrieves the deep link data.

note

For iOS Only: To enable deferred deep link functionality on iOS, you need to call the subscribeAttributionlink() method after initialization. This allows our server to send the attributed data parameters to the app. For Android, deferred deep linking works automatically without this call.

Implementation

main.dart
import 'dart:io' show Platform;

void initializeSDK() {
TrackerSDKConfig config = TrackerSDKConfig(
"your-sdk-key", // Replace with your SDK key
"development"
);

// Set deferred deep link callback
config.deferredDeeplinkCallback = (String uri) {
print("Deferred Deep Link URL: $uri");
// Handle your deep link navigation here
};

Trackierfluttersdk.initializeSDK(config);

// Subscribe to attribution link for deferred deep links (iOS only)
if (Platform.isIOS) {
Trackierfluttersdk.subscribeAttributionlink();
}
}

Testing

Android Testing

  1. Prepare APK: Build APK with SDK integration
  2. Click Link: Open test URL in browser - redirects to Play Store
  3. Install APK: Install APK manually (not from Play Store)
  4. Launch App: Open app - deferred deep link should be processed

iOS Testing

  1. Prepare IPA: Build IPA with SDK integration
  2. Click Link: Open test URL in Safari - redirects to App Store
  3. Install App: Install via TestFlight or direct installation
  4. Launch App: Open app - deferred deep link should be processed

Example Test URL:

https://yourdomain.u9ilnk.me/d/Af2xeLPI77?pid=Ron+Media+Source&cost_value=0&cost_currency=GBP&lbw=1d&camp=Ron+Referral+Test&dlv=RonTestClass&p2=param_2_value&sdk_param=sdk_param_value

Common Issues

IssueSolution
No app store redirectCheck Store Redirect in Trackier Panel
Deep link not processedEnsure subscribeAttributionlink() is called after SDK initialization
Missing parametersVerify URL includes required parameters

For further assistance, contact Trackier support at support@trackier.com.