Skip to content

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

@scriabinEtude

Description

@scriabinEtude

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions