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

deep link is not working in case user is redirect through app store to install app #539

Open
edapess opened this issue Mar 28, 2024 · 10 comments
Labels

Comments

@edapess
Copy link

edapess commented Mar 28, 2024

Report

we had an issue with deep linking in case, when link redirecting user to app store, to install the app, and we have like screen, to where user navigate after signup from deep link, but it's not working, and also there is a case on some devices(with same OS) when user installed app already, on one device deep link works perfectly (opens app, redirects), but on another device even if app is installed deep link is't working, so it takes to app store only.

Plugin Version

ℹ Please replace these two lines with the plugin version.
e.g. via 6.13.1

On what Platform are you having the issue?

IOS

What did you expect to happen?

link has to open app store and after registration it needs to navigate user to exact screen

What happened instead?

link is not redirecting user after app store installation, but redirects when app is already installed

Copy link

👋 Hi @edapess 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 [email protected].
When submitting the ticket, please specify:

  • ✅ your AppsFlyer sign-up (account) email
  • ✅ app ID
  • ✅ production steps
  • ✅ logs
  • ✅ code snippets
  • ✅ and any additional relevant information.

@arifo
Copy link

arifo commented Apr 5, 2024

we faced the same issue, deep link opening app store even if app is already installed, as fix we needed to clear safari cache on the device and the link would then work as expected, open the app.
ref: https://discussions.apple.com/thread/253947740?answerId=257410229022#257410229022
still looking for a solution to fix this, as it is not an option to tell each user who tap on a appsflyer deeplink to clean their safari cache

platform: ios
"react-native": "0.72.4",
"react-native-appsflyer": "^6.12.2"

@edapess
Copy link
Author

edapess commented Apr 8, 2024

we faced the same issue, deep link opening app store even if app is already installed, as fix we needed to clear safari cache on the device and the link would then work as expected, open the app. ref: https://discussions.apple.com/thread/253947740?answerId=257410229022#257410229022 still looking for a solution to fix this, as it is not an option to tell each user who tap on a appsflyer deeplink to clean their safari cache

platform: ios "react-native": "0.72.4", "react-native-appsflyer": "^6.12.2"

Thanks, @arifo. I will check this today and get back to you with the investigation results. I hope the Appsflyer team will fix this in the near future.

@edapess
Copy link
Author

edapess commented Apr 8, 2024

@arifo so I checked, the app store case (Deferred linking) still doesn't work, and i checked again with documentation, everything is set up correctly

@iway1
Copy link

iway1 commented May 1, 2024

are others experiencing this issue? trying to determine whether it's a good idea to implement this or not

@jalvarez930
Copy link

I have the same issue. I'm working with this versions. And when I paste the onelink in Safari it returns to the Apple Store.

platform: ios
"react-native": "0.73.4",
"react-native-appsflyer": "^6.13.1",

@edapess
Copy link
Author

edapess commented May 31, 2024

are others experiencing this issue? trying to determine whether it's a good idea to implement this or not

I think I'm not the only one

@OmarKhairyMo
Copy link

WhatsApp Image 2024-05-31 at 6 00 38 PM
am getting this message when i try to open the link using universal links with the correct subdomain link and associate domain. any help please ?

@ibash-corpusant
Copy link

ibash-corpusant commented Aug 28, 2024

Seems like appsflyer has a lot of issues with deferred deep links. However I just set it up and see in the ios logs that deferred deep links might be working.

In particular if you:

  1. Make sure debug mode is on
  2. Make sure onDeepLinkListener is set to true
  3. Build the app in preview / production mode.

Then look at the native ios logs (using the console app) and search for "af_" or "jsonMessageStr" you might see some values:

Screenshot 2024-08-28 at 3 32 36 PM

I am also logging a bunch of events, so the logs might be coming from there:

appsFlyer.onInstallConversionFailure((data) => {
  console.log('install conversion failure', data)
});

appsFlyer.onDeepLink((data) => {
  console.log('on deep link data', data)
})

appsFlyer.onInstallConversionData((data) => {
  console.log('on install conversation data', data)
})

appsFlyer.onAppOpenAttribution((data) => {
  console.log('on app open attribution data', data)
})

appsFlyer.onAttributionFailure((data) => {
  console.log('on attribution failure data', data)
})

console.log('init appsflyer')
appsFlyer.initSdk(
  {
    devKey: your_dev_key,
    appId: your_app_id,
    isDebug: true,
    onDeepLinkListener: true
  },
  () => {
    console.log('apps flyer init success')
  }, // success handler is a noop
  (error) => {
    console.log('apps flyer init error', error)
  },
);

@Haykys
Copy link

Haykys commented Aug 30, 2024

I was having the same issue and couldn't figure out why I wasn't getting re-directed into the app. Finally figured out it was missing configuration in OneLink Management.

Monosnap OneLink Management 2024-08-30 09-55-33

Inside there you need to setup this part

Monosnap OneLink Management 2024-08-30 09-56-26

Hope it helps someone who missed this part of documentation as I did

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

No branches or pull requests

8 participants