AppsFlyerSDK / AppsFlyerFramework

AppsFlyer Apple SDK
https://support.appsflyer.com/hc/en-us/articles/207032066-AppsFlyer-SDK-Integration-iOS
Other
164 stars 89 forks source link

af_purchase event bug #184

Closed LouisSong closed 2 years ago

LouisSong commented 2 years ago

Report

afbug

SDK Version

6.3.2

What did you do?

send a af_purchase event from unity3d to ios appsflyer sdk,the code i used: Dictionary<string, string> eventValues = new Dictionary<string, string>(); eventValues.Add("af_revenue","100") eventValues.Add("af_currency","USD") AppsFlyer.sendEvent("af_purchase", eventValues);//this will call _afSendEvent in ios(Objective-c)

What did you expect to happen?

appsflyer report fb_mobile_purchase to Facebook with correct currency value,in this example,it should be USD.

What happened instead?

In facebook event manager,it's report an warning: invalid fb_mobile_purchase currency code because the value of fb_currency which appsflyer reported is "N/A"

Please provide any other relevant information.

When I skip sendEvent when eventName equals 'af_purchase',the waning above was disappear,so i thinks this is a bug in appsflyer ios sdk. There are two purchase events produced after a purchase action,one is from facebook auto reporting,the other is from appsflyer.

LouisSong commented 2 years ago

it works when disable facebook auto-logging.