appsflyer-react-native-plugin icon indicating copy to clipboard operation
appsflyer-react-native-plugin copied to clipboard

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

Open edapess opened this issue 1 year ago • 11 comments

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

edapess avatar Mar 28 '24 21:03 edapess

👋 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.

github-actions[bot] avatar Mar 29 '24 07:03 github-actions[bot]

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"

arifo avatar Apr 05 '24 11:04 arifo

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 avatar Apr 08 '24 08:04 edapess

@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

edapess avatar Apr 08 '24 15:04 edapess

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

iway1 avatar May 01 '24 19:05 iway1

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",

jalvarez930 avatar May 30 '24 21:05 jalvarez930

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

edapess avatar May 31 '24 12:05 edapess

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 ?

OmarKhairyMo avatar May 31 '24 15:05 OmarKhairyMo

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)
  },
);

ibash-corpusant avatar Aug 28 '24 22:08 ibash-corpusant

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

Haykys avatar Aug 30 '24 07:08 Haykys

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

I tried this but same issue @Haykys, can you advice on how to approach this, since I need to test it locally and I can't wait till each each time to upload to store and wait for there approval to test it

fouadsaoudi avatar Oct 15 '24 10:10 fouadsaoudi

@Haykys we also had everything configured, so the problem is not there in our case

edapess avatar Nov 21 '24 14:11 edapess

@fouadsaoudi You don't have to upload it to the store each time. You can just build the app using Xcode to test the changes

Haykys avatar Nov 22 '24 08:11 Haykys

Here the testing I did (iOS only): Only one scenario works as expected

Safari, app installed,

  • Doesn’t open at all shows blank page in browser Chrome, app installed or app not installed
  • Dialog shows briefly about allowing opening external application, then App Store sheet opens Safari app not installed
  • Opens app store

Universal Deeplinks setup correctly Template configured correctly Screenshot 2024-11-27 at 8 23 33 PM

Screenshot 2024-11-27 at 8 24 40 PM

I've also tried setting af_force_deeplink to true which works for users who don't have the app installed but doesn't for users who have it installed.

AppsFlyer ticket number: 663598

Georg7 avatar Nov 27 '24 12:11 Georg7

This is also affecting us

bc-tinker avatar Mar 05 '25 21:03 bc-tinker

us as well, the link redirecting users to the appstore even the app already installed

abdymm avatar Mar 07 '25 09:03 abdymm

the same issues

mahaaoo avatar Mar 12 '25 08:03 mahaaoo

Same issue. We have setup everything and even cleared safari cache and cookies. Its not opening the installed app

vkukade-altir avatar Mar 12 '25 09:03 vkukade-altir

Same issue, link is redirected to the Apple Store while the App is installed. Everything is set on my side as well as the "onelink template"

The check in Settings -> Developer is ✅

Image

While my App is in production already and have been working with firebase for years with Appflyers I need to append ?mode=developer to the associated domain to make it work.

Could this be related to some caching?

Only tested locally (as I'm just migrating) but by adding this, the link opens the App instead of redirecting to the store.

venux92 avatar Apr 09 '25 14:04 venux92

Same issue we are facing but on iOS OS version 18.0 and above. For below versions it is working fine.

ankitpunchh avatar Apr 10 '25 08:04 ankitpunchh

@vkukade-altir Have you solved it ?

ankitpunchh avatar Apr 10 '25 08:04 ankitpunchh

any solution for this?

abdymm avatar Jun 09 '25 04:06 abdymm

Try adding af_force_deeplink=true to the URL parameter — that worked for me.

sachin-salian avatar Jun 10 '25 11:06 sachin-salian

This issue is stale because it has been open for 60 days with no activity.

github-actions[bot] avatar Aug 10 '25 10:08 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar Aug 24 '25 10:08 github-actions[bot]

Should we use isDebug: false parameter in production build or just stick with isDebug: true ?

arpankanwer avatar Sep 25 '25 16:09 arpankanwer

same issue on IOS:

Image

lambui09 avatar Nov 11 '25 17:11 lambui09