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
1. Initialize SDK with Deferred Deep Link Callback
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
- Prepare APK: Build APK with SDK integration
- Click Link: Open test URL in browser - redirects to Play Store
- Install APK: Install APK manually (not from Play Store)
- Launch App: Open app - deferred deep link should be processed
iOS Testing
- Prepare IPA: Build IPA with SDK integration
- Click Link: Open test URL in Safari - redirects to App Store
- Install App: Install via TestFlight or direct installation
- 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
Issue | Solution |
---|---|
No app store redirect | Check Store Redirect in Trackier Panel |
Deep link not processed | Ensure subscribeAttributionlink() is called after SDK initialization |
Missing parameters | Verify URL includes required parameters |
For further assistance, contact Trackier support at support@trackier.com.