Skip to main content

Deferred Deep Linking

SDK Version Selection

Choose your SDK version below:

  • Apptrove SDK → Recommended for all projects (Latest: v2.0.0)
  • Trackier SDK → Will be deprecated in May 2026 (v1.x.xx)

Use the tabs below to view deferred deep linking code for your chosen SDK.

Deferred deep linking happens when a user clicks a Apptrove 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;
import 'package:apptrove_sdk_flutter/apptrove_sdk_flutter.dart';

void initializeSDK() {
AppTroveSDKConfig config = AppTroveSDKConfig("your-sdk-key", "development");
config.deferredDeeplinkCallback = (String? uri) {
print("Deferred Deep Link URL: $uri");
};
AppTroveFlutterSdk.initializeSDK(config);
if (Platform.isIOS) {
AppTroveFlutterSdk.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 Apptrove Panel
Deep link not processedEnsure subscribeAttributionlink() is called after SDK initialization
Missing parametersVerify URL includes required parameters

For further assistance, contact support at support@apptrove.com.