AppsFlyerSDK / appsflyer-cordova-plugin

AppsFlyer plugin for Cordova
MIT License
37 stars 71 forks source link

Shortlinks are no passing conversion data on Android (UDL) #180

Closed gelinger777 closed 2 years ago

gelinger777 commented 2 years ago

Report

Plugin Version

cordova-plugin-appsflyer-sdk 6.3.31 "AppsFlyer"

On what Platform are you having the issue?

android

What did you do?

I have implemeted UDL

What did you expect to happen?

I expect shortlink of appsflyer to behave the same way as long link

What happened instead?

On Shortlink version custom parameters are not passed

Please provide any other relevant information.


      function handleDeepLinks(data){

        console.log(data);

        const dataStr= JSON.stringify(data);
        alert("handle"+dataStr);
      }

      window.plugins.appsFlyer.registerDeepLink(function(res) {
          console.log('AppsFlyer DDL ==> ' + res);

         alert ("test444"+res);

         try {
          const parsedRes = isJsonString(res) ? JSON.parse(res) : res;
          const data = isJsonString(parsedRes.data)
            ? JSON.parse(parsedRes.data)
            : parsedRes.data;
          handleDeepLinks(data);
        } catch (error) {
          console.error('registerDeepLink error: ', error);
        }

       });

     let options = {
        devKey: 'prr****************', // your AppsFlyer devKey
        isDebug: true,
        appId: '*************9', // your ios appID,
        onInstallConversionDataListener: true,
        onDeepLinkListener: true // by default onDeepLinkListener is false!

      //  waitForATTUserAuthorization: 10, //time for the sdk to wait before launch - IOS 14 ONLY!
      };

      window.plugins.appsFlyer.initSdk(options, function(res) {
        console.log('AppsFlyer GCD ==>' + res);

        alert ("test1"+res);

        }, function(err) {
        console.log(`AppsFlyer GCD ==> ${err}`);

    });
pazlavi commented 2 years ago

Hi @gelinger777 , Thank you for reaching out to us.

To provide optimal support, we would kindly ask you to submit a support ticket to support@appsflyer.com.

When submitting the ticket, please specify your AppsFlyer sign-up (account) email, app ID, reproduction steps, code snippets, logs, the links you used, and any additional relevant information.