Skip to content

Deferred deeplink not having expected content #651

@jacobocl

Description

@jacobocl

Hello everyone!

I'm implementing the deferred deeplinks in my application but I'm having some issues.
The idea is to have a custom link to have a count on the users that download the app through an invite link. Each user of my app have a promo code, which should be part of the invite link, so that, when the invited person clicks on it, after installing the app, it is redirected to the registration screen, having the promo code input filled with the promo code of the user who invited it.

I was able to create a Custom Link and, adding the deep_link parameter, I got it's content in the setOnDeferredDeeplinkResponseListener, but it doesn't have the expected format.

Let's say that my Custom Link is: https://myapp.go.link/7TvB4, then, when user1 wants to share an invitation link with user2, the link is built in the app appending the desired deeplink in the deep_link query parameter: https://myapp.go.link/7TvB4?deep_link=myapp-dev%3A%2F%2Fregistration%3Fpromo%3DThisIsAPromoCode
According to the documentation, I would expect that, after user2 clicks on the link and installs the app, setOnDeferredDeeplinkResponseListener would provide something like: myapp-dev://registration?promo=ThisIsAPromoCode as deeplink (and maybe some other Adjust query parameters such as adj_t and adjust_no_sdkclick). However, instead of that, what I get as deeplink is: myapp-dev://?adj_t=4xt8m5un&deep_link=myapp-dev%3A%2F%registration%3Fpromo%3DThisIsAPromoCode&adjust_no_sdkclick=1

Why do I get the a deeplink with the deep_link parameter instead of the deeplink being the content of the deep_link parameter?

Also, I have tested using deeplink query parameter instead of deep_link (without the underscore), but I got the same result.

I was only able to make it work properly using adj_deep_link query parameter: https://myapp.go.link/7TvB4?adj_deep_link=myapp-dev%3A%2F%2Fregistration%3Fpromo%3DThisIsAPromoCode; in that case, in setOnDeferredDeeplinkResponseListener I get myapp-dev://registration?promo=ThisIsAPromoCode&adjust_no_sdkclick=1 as deeplink, which is what I expected, but I'm not sure if that is right, as I might be interferring with some internal Adjust parameter.

Is it adj_deep_link the right query param to set the deeplink?

On the other hand, I know that I can create a link of type Deep Link in the Adjust console, but that does not fit my use case, as I need the promo parameter to be dynamic (it depends on the user who shares the link).
I tried creating an Adjust Deep Link to the Registration screen (setting the User Destination as /registration) and then, when building the link to share, addding the promo parameter (e.g.: https://myapp.go.link/8gFzx?promo=ThisIsAPromoCode), but that didn't work. Although in that case the deeplink that I get in setOnDeferredDeeplinkResponseListeneris right:myapp-dev://registration?adjust_no_sdkclick=1, the promo=ThisIsAPromoCode` query param is lost.
If this worked, it would be fantastic, as the URL would be much shorter...

Version of Adjust SDK: 5.4.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions