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

onDeepLinking DeepLinkResult "NOT_FOUND" on iOS #325

Open
AILIKE-ME opened this issue Jun 22, 2024 · 2 comments
Open

onDeepLinking DeepLinkResult "NOT_FOUND" on iOS #325

AILIKE-ME opened this issue Jun 22, 2024 · 2 comments

Comments

@AILIKE-ME
Copy link

AILIKE-ME commented Jun 22, 2024

Describe the bug
We implemented deferred deep linking on Android and iOS about one and a half months ago. After some updates, the deferred deep linking is not working on iOS, whereas it is working well on Android. Specifically, the onDeepLinking function consistently gives DeepLinkResult with the status of "NOT_FOUND". The onInstallConversionData gives some valid information that implies the connection between the app and the server is not lost. We think it might be related to recent updates, but we have not figured it out yet. How can we resolve this?

Here is the code for the deferred deep linking we implemented.

Future<void> initializeAppsflyer() async {
  var appsFlyerOptions = AppsFlyerOptions(
      afDevKey: 'DevKey', appId: 'AppID', showDebug: true);

  AppsflyerSdk appsflyerSdk = AppsflyerSdk(appsFlyerOptions);

  appsflyerSdk.onInstallConversionData((result) {
    print("Conversion data: " + result.toString());
    if (result['status'] == 'success') {
      handleDeepLinkData(result['deep_link']);
    }
  });

  appsflyerSdk.onAppOpenAttribution((result) {
    print("Open attribution: " + result.toString());
    handleDeepLinkData(result);
  });

  appsflyerSdk.onDeepLinking((DeepLinkResult dp) {
    print("Deep Link Result: " + dp.toString());
    if (dp.status == Status.FOUND && dp.deepLink != null) {
      print("dp.deeplink : ${dp.deepLink}");
      print("dp.deeplink.deeplinkvalue : ${dp.deepLink!.deepLinkValue}");
      handleDeepLinkData(dp.deepLink);
    }
  });

  await appsflyerSdk.initSdk(
      registerConversionDataCallback: true,
      registerOnAppOpenAttributionCallback: true,
      registerOnDeepLinkingCallback: true);
}

Expected behavior
Get DeepLinkResult with the status of "FOUND"

Smartphone (please complete the following information):

  • Device: iPhone12
  • OS: iOS17.5

Additional context
appsflyer_sdk version: 6.13.0+2
flutter version: 3.22.2

@528564233
Copy link

528564233 commented Jun 27, 2024

有解决吗 我这边ios深度连接可以打开app但是不走onDeepLinking 第一次安装有进 ,之后打开就不进了

@vaibhavaroraneo
Copy link

@AILIKE-ME did it worked for you?

@528564233 您好,我无法通过 iOS 上的深度链接打开应用程序。您能帮我一下吗?您对 AppDelegate.swift 做了任何更改吗?

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