AppsFlyerSDK / appsflyer-react-native-plugin

AppsFlyer plugin for React Native
MIT License
278 stars 198 forks source link

Unified deep linking not working properly when the user installs application from the store #437

Closed pratik-adh closed 1 year ago

pratik-adh commented 1 year ago

I am trying to implement Unified Deep Linking (UDL) feature in my application, I have done everything as per the document provided by the AppsFlyer team. But, still, I am not being able to integrate it properly.

I have briefly described the issue that I have faced, below:

Suppose, there are two users A and B, when user A shares a link with user B, there can be two cases on the device of user B.

  1. Case I When the App is installed: If the application is installed in the device of user B, then user B will be redirected to the specified page inside the application. This case is working fine. Only the issue, here is that the dialog box appears two times once after clicking the shared link and another after opening it with the application, as shown in the below images.

Image 1 image

Image 2: After the application has been opened from Image 1. image

  1. Case II: When the app is not installed: If the application is not installed on the device of user B then user B will be redirected to the play store or the app store and after installing the app and logging in, he/she will not be redirected to a specified page but should be as per the requirement.

I don't know why these cases are being occurred, even though I am doing it in a proper way. can somebody help me with this issue? Thank you!! 🙏

github-actions[bot] commented 1 year ago

👋 Hi @pratik-adh and Thank you for reaching out to us. In order for us to provide optimal support, please submit a ticket to our support team at support@appsflyer.com. When submitting the ticket, please specify:

dan-betmate commented 1 year ago

This is also happening for me. I've submitted a ticket to support@appsflyer.com but am yet to hear back.

pratik-adh commented 1 year ago

@dan-betmate, did you receive any updates from the support team?

dan-betmate commented 1 year ago

@pratik-adh yeah, been talking to support for a few days now.

pratik-adh commented 1 year ago

@dan-betmate, any updates? Did you solve this issue?

dan-betmate commented 1 year ago

@pratik-adh I solved it by using React Native Linking for handling deeplinking when the app is installed, both when the app is completely exited and just backgrounded. Then I used Appsflyer Unified Deep Linking to deal with just deferred deeplinking for when a user does not have the app installed and is taken through the store.

The best I could get just the Appsflyer Unified Deep Linking was for it to handle deferred deeplinking correctly, and an installed app that was completely exited correctly, but an installed app that was backgrounded would not work on iOS (I found the data delivered to the phone was different for iOS and Android which made this annoying). I think the Appsflyer documentation does not mention iOS tracking transparency, adding this in helped deferred deeplinking start working for me on iOS.

This is a slightly annoying solution as Appsflyer Unified Deep Linking says it should handle all cases, but after trying several different ways to make it work and a looooong email exchange with Appsflyer support this is the best I could come up with.

pratik-adh commented 1 year ago

Glad that you solved it. Anyways, thank you for your response. 🙏