Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Universal link not working #242

Open
DamienDulac opened this issue Jul 19, 2024 · 3 comments
Open

Universal link not working #242

DamienDulac opened this issue Jul 19, 2024 · 3 comments

Comments

@DamienDulac
Copy link

DamienDulac commented Jul 19, 2024

Hi,

I am taking the liberty of creating an issue because I cannot process the deep link which is passed as a parameter of a universal link on my react native iOS app. The link is: https://myprojectid.adj.st/promotions?adj_t=........&adj_deep_link=fidmelistint%3A%2F%2Ffidmelist%2Fpromotions.

For several days I have been trying to find out why the link opens my application, but redirects me each time to the iOS store.

I tried following the documentation (https://dev.adjust.com/en/sdk/ios/features/deep-links/direct?version=v4#:~:text=your%20app%20delegate.-,Universal%20links,-Update%20the%20application), but even by implementing my own logic to retrieve the deep link via the adj_deep_link parameter present in the URL, I am automatically redirected to the store.

Do you have any sample code that we are supposed to use to make universal linking work correctly?

`
[ADJLinkResolution

    resolveLinkWithUrl:incomingURL

    resolveUrlSuffixArray:@[

    @"email.example.com", @"short.example.com"

    ]
   
    callback:^(NSURL* _Nullable resolvedURL) {

        // add your code below to handle deep link

        // (for example, open deep link content)

        // resolvedURL object contains the deep link

        // call the below method to send deep link to Adjust's servers

        [Adjust appWillOpenUrl:resolvedURL];
    }];`

How does the SDK know that the application was opened via the deep link, and that it should not be redirected to the appstore? And is it normal that the content of resolvedURL is the same as incomingURL ?

Thank you in advance for your help.

@marcos-cunha-gringo
Copy link

Hi,

I am taking the liberty of creating an issue because I cannot process the deep link which is passed as a parameter of a universal link on my react native iOS app. The link is: https://myprojectid.adj.st/promotions?adj_t=........&adj_deep_link=fidmelistint%3A%2F%2Ffidmelist%2Fpromotions.

For several days I have been trying to find out why the link opens my application, but redirects me each time to the iOS store.

I tried following the documentation (https://dev.adjust.com/en/sdk/ios/features/deep-links/direct?version=v4#:~:text=your%20app%20delegate.-,Universal%20links,-Update%20the%20application), but even by implementing my own logic to retrieve the deep link via the adj_deep_link parameter present in the URL, I am automatically redirected to the store.

Do you have any sample code that we are supposed to use to make universal linking work correctly?

` [ADJLinkResolution

    resolveLinkWithUrl:incomingURL

    resolveUrlSuffixArray:@[

    @"email.example.com", @"short.example.com"

    ]
   
    callback:^(NSURL* _Nullable resolvedURL) {

        // add your code below to handle deep link

        // (for example, open deep link content)

        // resolvedURL object contains the deep link

        // call the below method to send deep link to Adjust's servers

        [Adjust appWillOpenUrl:resolvedURL];
    }];`

How does the SDK know that the application was opened via the deep link, and that it should not be redirected to the appstore? And is it normal that the content of resolvedURL is the same as incomingURL ?

Thank you in advance for your help.

Hi @DamienDulac! I was searching for a solution because at the company where I work, we are experiencing the same problem, but only with iOS. On Android, the library works as expected. Which version of React Native are you using? And which Adjust SDK version?

We're using:

RN: 0.74.4
Adjust SDK Version: v4

@DamienDulac
Copy link
Author

Hi @marcos-cunha-gringo,

On our side we also encounter the problem on iOS, and everything works fine on android. We are on react-native 0.71.19 and adjust 4.29.6.

Have you managed to solve this problem since then?

Thanks in advance.

@jamesboone
Copy link

Can you try upgrading to the Adjust SDK v5, there are important updates to this SDK that might resolve your issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants