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

appsFlyer.onDeepLink not being triggered in a specific case #544

Closed
moatasemyakhni opened this issue Apr 22, 2024 · 1 comment
Closed

appsFlyer.onDeepLink not being triggered in a specific case #544

moatasemyakhni opened this issue Apr 22, 2024 · 1 comment
Labels

Comments

@moatasemyakhni
Copy link

Report

Plugin Version

^6.12.2

On what Platform are you having the issue?

ℹ ios

What did you do?

ℹ I followed the tutorial on how to implement deeplink and universal links.

I added in AppDelegate.mm file

// Open URI-scheme for iOS 9 and above
 [[AppsFlyerAttribution shared] handleOpenUrl:url options:options];
 return YES;
  // Linking
 // return [RCTLinkingManager application:application openURL:url options:options];
}

- (BOOL)application:(UIApplication *)application continueUserActivity:(nonnull NSUserActivity *)userActivity
 restorationHandler:(nonnull void (^)(NSArray<id<UIUserActivityRestoring>> * _Nullable))restorationHandler
{
  // Open Universal Links
  [[AppsFlyerAttribution shared] continueUserActivity:userActivity restorationHandler:restorationHandler];
  return YES;
  // Linking
 //return [RCTLinkingManager application:application
                  continueUserActivity:userActivity
                    restorationHandler:restorationHandler];
}

What did you expect to happen?

ℹ to get triggered normally.

What happened instead?

ℹ In every case the onDeepLink was working fine. However, if the app had been in the background for a long time (more than 30 min) and enter it again through a onelink link. The listener will not get triggered. Thus the app will do nothing, it will simply open.

Please provide any other relevant information.

ℹ if anyone want to test it without waiting the time to pass, you can change the time manually from your desktop, simulator, or real device. Go to settings -> date & time -> turn off "set time automatically" -> add 1 hour

run in the command line: xcrun simctl openurl booted "https://<your_app>.onelink.me//?deep_link_value=HELLO"

The listener will not trigger

Copy link

👋 Hi @moatasemyakhni 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:

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

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

2 participants