I am testing the deferred deep linking feature of AppsFlyer, but I’m unable to get a new deep link to attribute correctly after a re-installation. The SDK seems to be caching the data from the initial install.
Steps to Reproduce
-
I have not yet installed the app on my test device.
-
I click on an AppsFlyer OneLink (Link A).
-
Since the app is not on the Play Store, I manually install a debug APK of my application from Android Studio.
-
Upon opening the app, the
onDeepLinkUDL (Unified Deep Linking) method is called, and I successfully receive the deferred deep link data for Link A. -
I immediately uninstall the app from the device.
-
I repeat the process, but this time I click a different OneLink (Link B).
-
I reinstall the app from Android Studio.
My Question
Why is AppsFlyer not re-attributing the second install to the new deep link (Link B)? What is the correct procedure to fully reset the device’s state and simulate a new user for a deferred deep link test on the same device?
Expected Behavior
-
I expected the
onDeepLinkmethod to provide me with the deferred deep link data for Link B, as I clicked a new link with the app uninstalled.Actual Behavior
On the second install, the
onDeepLinkmethod is called, but theDeepLinkResultobject contains the data from the original Link A. Thestatusis also incorrectly reported as an organic launch.It seems like AppsFlyer is not clearing the attribution data after the uninstall, leading to it incorrectly returning the old data and misreporting the attribution type.