adaptyteam / AdaptySDK-Flutter

SDK for growing mobile in-app purchases
https://docs.adapty.io/docs/quickstart
MIT License
95 stars 17 forks source link

Attribution incorrect data #48

Closed Horum-dev closed 2 years ago

Horum-dev commented 2 years ago

Hello! We cant get right attribution source for our purchases:

AppsFlyerOptions options = AppsFlyerOptions(
        afDevKey: ApiKeys.appsflyerDevKey,
        appId: Platform.isIOS
            ? ApiKeys.appsflyerAppIdIos
            : ApiKeys.appsflyerAppIdAndroid,
        showDebug: true,
        timeToWaitForATTUserAuthorization: 70);
    appsflyer = AppsflyerSdk(options);

    appsflyer.onInstallConversionData((data) {
      return _applyConversionData(data);
    });
    appsflyer.onAppOpenAttribution((data) {
      return _applyConversionData(data);
    });

and here:

_applyConversionData(data) async {
    print('_applyConversionData - $data');
    print('networkUserId - ${await appsflyer.getAppsFlyerUID()}');
    await Adapty.updateAttribution(data,
        source: AdaptyAttributionNetwork.appsflyer,
        networkUserId: await appsflyer.getAppsFlyerUID());
}
x401om commented 2 years ago

Hey, @Horum-dev! Do you mean, you can't get some values from AppsFlyer attribution dictionary? What does the AppsFlyer support says?

x401om commented 2 years ago

Since this issue is not directly related to our SDK, I will close it. If you are still experiencing this problem, please contact our technical support via Intercom on our website.