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 cannot be monitored #324

Open
tudosxxx opened this issue May 22, 2024 · 1 comment
Open

onDeepLinking cannot be monitored #324

tudosxxx opened this issue May 22, 2024 · 1 comment
Labels

Comments

@tudosxxx
Copy link

`AppsFlyerOptions appsFlyerOptions = AppsFlyerOptions(
afDevKey: '*******************',
appId: '',
showDebug: true,
appInviteOneLink: 'mv21',
timeToWaitForATTUserAuthorization: 15,
manualStart: true
);
appsflyerSdk = AppsflyerSdk(appsFlyerOptions);

appsflyerSdk!.onInstallConversionData((res) {
  print("===onInstallConversionData res: $res");
});

// App open attribution callback
appsflyerSdk!.onAppOpenAttribution((res) {
  print("===onAppOpenAttribution res: $res");
});

appsflyerSdk!.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;
  }
});

await appsflyerSdk!.initSdk(
    registerConversionDataCallback: true,
    registerOnAppOpenAttributionCallback: true,
    registerOnDeepLinkingCallback: true);
if (Platform.isAndroid) {
  appsflyerSdk!.performOnDeepLinking();
}

appsflyerSdk!.startSDK(
  onSuccess: () {
    print("===AppsFlyer SDK initialized successfully.");
  },
  onError: (int errorCode, String errorMessage) {
    print("===Error initializing AppsFlyer SDK: Code $errorCode - $errorMessage");
  },
);`

`getOnDeepLinkUrl() async{

AppsFlyerInviteLinkParams inviteLinkParams = AppsFlyerInviteLinkParams(
    channel: "android",
    referrerName: "aaa",
    baseDeepLink: "bbb",
    brandDomain: "ccc",
    customerID: "ddd",
    referreImageUrl: "eee",
    campaign: "fff",
    customParams: {"af_sub1":"hhh"}
);

appsflyerSdk!.generateInviteLink(inviteLinkParams,
        (result){
      print(result);
    },
        (error){
      print(error);
    }
);

}`

When I run the IDE directly, onDeepLinking detects that the deep link is not found, but when I visit the website via the invitation link I created, the website goes to the Google App Store and I open it manually. Each time, the onInstallConversionData method listens for printing. onDeepLinking nothing happens. How to combine this invitation with onDeepLinking and get the custom parameters in the invitation link

Copy link

👋 Hi @tudosxxx 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