Testing Deferred Deeplinking

Introduction

Deferred Deeplinking allows you to navigate your users to the required app page, even when the app is not yet installed on their device.

By clicking on your Tracking Link - the user is directed to the store, installs the app, and is then redirected according to the logic you added in our callback.

This is an example of a Tracking Link:

https://app.appsflyer.com/android.appsflyer.sampleapp?pid=AppsFlyer_Test&af_dp=test%3A%2F%2F


While normal Deeplinking triggers onAppOpenAttribution, deferred Deeplinking triggers onInstallConversionDataLoaded callback with the link parameters.

 Note

You must generate a non-organic install to retrieve the link parameters. For details of how to Whitelist a device, click here.


Add your logic inside onInstallConversionDataLoaded (example) -

AppsFlyerLib.getInstance().registerConversionListener(this, new AppsFlyerConversionListener() {
   @Override
   public void onInstallConversionDataLoaded(Map<String, String> conversionData) {
       String path = conversionData.get("af_dp");
if(path != null && !path.isEmpty()) {
           final Intent i = new Intent(getApplicationContext(), Deeplink.class);
           i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
           if(path.contains("test")){
               startActivity(i);
           }
}
}
});


How to Test Deferred Deeplinking

Follow these steps to test your deferred Deeplink.

Using Google Play

  1. Create a Beta page for your app
  2. Generate a tracking link with af_dp value
  3. Click and download the app from Google play
  4. Check if the callback is triggered

Was this article helpful?
0 out of 1 found this helpful