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

function "onDeepLinking" is not triggered when app is terminated on IOS #291

Open
scriabinEtude opened this issue Aug 30, 2023 · 1 comment

Comments

@scriabinEtude
Copy link

scriabinEtude commented Aug 30, 2023

Describe the bug
function onDeepLinking is not triggered when app is terminated on IOS

To Reproduce
Steps to reproduce the behavior:

  1. install app. and run
  2. terminate app
  3. click onelink
  4. app is launched
  5. onDeepLinking isn't called.

Expected behavior
onDeepLinking is triggered with deep_link_value

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Mac M2 Ventura 13.4.1 (c)(22F770820d
  • Browser: Chrome
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: iphone 11
  • OS: IOS 16.6
  • Browser: Chrome, Google, Safari

Additional context

appsflyer_sdk: ^6.11.3
I'm using firebase_dynamic_links: ^5.2.0, app_links: ^3.4.3 to handle other links.
so FlutterDeepLinkingEnabled is false

// my code

var _sdk = AppsflyerSdk(options).initSdk(
  registerConversionDataCallback: true,
  registerOnAppOpenAttributionCallback: true,
  registerOnDeepLinkingCallback: true,
);


listen() {
  _sdk.onAppOpenAttribution((res) {
    print("onAppOpenAttribution res: $res");
  });
  _sdk.onInstallConversionData((res) {
    print("onInstallConversionData res: $res");
  });
  _sdk.onDeepLinking((DeepLinkResult dp) {
    switch (dp.status) {
      case Status.FOUND:
        print(dp.deepLink?.toString());
        print("deep link value: ${dp.deepLink?.deepLinkValue}");
        break;
      case Status.NOT_FOUND:
        print("deep link not found");
        break;
      case Status.ERROR:
        print("deep link error: ${dp.error}");
        break;
      case Status.PARSE_ERROR:
        print("deep link status parsing error");
        break;
    }
    print("onDeepLinking res: $dp");
    GotoPath.shared.fromEncodedUrl(dp.deepLink?.deepLinkValue);
  });
}

function onDeepLinking doing well under the state that app is running.
but when app is terminated, it doesn't.
i want to use onelink and other links together.

thanks

@kalyanchandra48
Copy link

@scriabinEtude
Did you get a Solution for this Issue or any support?

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

2 participants