How to test Deferred Deep Linking with AppsFlyer?
Asked Answered
L

2

9

I'm integrating AppsFlyer with Android Native Application. And I want to use Deferred Deep Linking, when user click landing page ads and download the app and upon first app open the user lands directly on the activity I want.

Link docs: https://support.appsflyer.com/hc/en-us/articles/207032096-Deferred-Deep-Linking-Getting-the-Conversion-Data

But I have not found a way to check that my code is running correctly. Please help me with this problem

Literati answered 9/1, 2019 at 7:48 Comment(0)
L
18

What was working for me is:

  1. Add physical device as a test device in AppsFlyer (here's how to do it)
  2. Enable Debug Mode in AppDelegate.swift in didFinishLaunchingWithOptions

    AppsFlyerTracker.shared().isDebug = true

  3. Add AppsFlyer methods in your AppDelegate.swift (as per article)

  4. Remove app (or test build) from physical device

  5. Open Deep Link from physical device, you will be redirected to App Store. Don't install app from the App Store!!! (just close it)

  6. Install app via XCode

After it, on a first install it will call onConversionDataReceived method and the rest staff.

Lolland answered 30/4, 2019 at 23:3 Comment(2)
Does this solution work with Non-Organic installs ?Actinouranium
I'm actually was looking for iOS solution, thanks. Although, the question is marked with "android" tag :DScull
J
1

You're going to have to implement the onInstallConversionDataLoaded listener:

public interface AppsFlyerConversionListener {
    void onInstallConversionDataLoaded(Map<String,String> conversionData);
    void onInstallConversionFailure(String errorMessage);
}

This will return a map of all the parameters on the link that you clicked. The parameter you need to pay attention to is the af_dp parameter. This parameter should contain the URI scheme of the activity you want to route your users to. Make sure that you have set up this URI scheme properly in the manifest.

To create a tracking link you can use Link Management. It doesn't matter if it's a single platform link or a OneLink, as long as you have the af_dp parameter on the link, that parameter (along with all other parameters on the link) will be part of the response.

If you're still facing issues, feel free to reach out to [email protected].

Jaxartes answered 10/1, 2019 at 20:4 Comment(1)
the question was how to test the code, not about the instructions on how to implement it.Whereinto

© 2022 - 2024 — McMap. All rights reserved.