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

Does setDeferredDeeplinkCallbackListener listens to default deeplinks? #212

Open
NancyGarg98 opened this issue Jun 19, 2023 · 8 comments
Open

Comments

@NancyGarg98
Copy link

No description provided.

@NancyGarg98
Copy link
Author

Having some troubles with SDK setup

Wanted to know if setDeferredDeeplinkCallbackListener listens to default deeplinks also?

@uerceg
Copy link
Contributor

uerceg commented Jun 22, 2023

Hi @NancyGarg98,

If you set a listener for deferred deep links, that callback method will be pinged by the Adjust SDK when SDK receives an information from the backend that the attribution of the current device also contained &deeplink=something parameter as part of the impression URL which was clicked / viewed.

In case your app is already installed and it gets opened by a click on a deep link, in that case the deep link which directly opened an already installed app will not get reported inside of that callback.

Not sure if this answered your question, but in case you still have some questions / doubts, feel free to ping.

@NancyGarg98
Copy link
Author

Still a little confused
So

  1. If i need to listen to default deeplinks, I can only listen it through linking module from react-native right? Adjust SDK doesnt provide any way for it?
  2. If i need to listen to deferred deeplinks in my app, I can use setDeferredDeeplinkCallbackListener and then do the handling thru its callback , is it correct ?
    @uerceg

@uerceg
Copy link
Contributor

uerceg commented Jun 23, 2023

Hi @NancyGarg98

  1. Yes, that is correct. In theory this is something Adjust SDK could do if we would take the path of hooking into default native iOS app delegate and Android activity class, but that might as well backfire in some other places, so we never went with this approach. So using RN linking module is a way to go in order to capture these links.
  2. That is correct.

@cyprian
Copy link

cyprian commented Dec 1, 2023

  • Yes, that is correct. In theory this is something Adjust SDK could do if we would take the path of hooking into default native iOS app delegate and Android activity class, but that might as well backfire in some other places, so we never went with this approach. So using RN linking module is a way to go in order to capture these links.
  • That is correct.

This answer should be part of the deeplink documentation. When you implement other SDK's (Firebase, Signular etc) they all implement their own deeplink callback methods. So I was also confused why I am not seeing default deep links called.

@uerceg
Copy link
Contributor

uerceg commented Dec 1, 2023

Hey @cyprian,

Thank you for the comment. 👍 Would it be useful for you if the Adjust SDK would offered you a way to obtain the deep link that has opened an already installed app? I understand that for some it might be convenient, but just wondering how truly beneficial that might be having in mind that React Native already offers a way to handle / obtain deep links via Linking.

@cyprian
Copy link

cyprian commented Dec 1, 2023 via email

@uerceg
Copy link
Contributor

uerceg commented Dec 1, 2023

I see. Apologies for the inconvenience and thank you for the suggestion, we'll make sure to add this to our docs.

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