I'm getting the following error during this line call
Error during JSON deserialization: The data couldn’t be read because it isn’t in the correct
By the way, there is a check while serialization data != null ? JsonConvert.SerializeObject(data) but something is wrong later.
In documentation the data seems to be optional. If it is not true: should I pass this:
class ... IAppsFlyerConversionData {
public void onConversionDataSuccess(string conversionData) {
var data = AppsFlyer.CallbackStringToDictionary(conversionData);
ApphudSDK.AddAttribution(ApphudAttributionProvider.appsFlyer, data, AppsFlyer.getAppsFlyerId());
}
public void onConversionDataFail(string error) {
var data = new Dictionary<string, object> {
["error"] = error,
};
ApphudSDK.AddAttribution(ApphudAttributionProvider.appsFlyer, data, AppsFlyer.getAppsFlyerId());
}
This is some combination of AppsFlyer docs and Apphud swift examples
It works fine now when I'm sending data. I'm leaving the issue open because in comments to code and documentation, the data is described as optional, and null is causing an error.
I'm calling
ApphudSDK.AddAttribution(ApphudAttributionProvider.appsFlyer, null, AppsFlyer.getAppsFlyerId());
I'm getting the following error during this line call
Error during JSON deserialization: The data couldn’t be read because it isn’t in the correct
By the way, there is a check while serialization
data != null ? JsonConvert.SerializeObject(data)
but something is wrong later.In documentation the data seems to be optional. If it is not true: should I pass this:
This is some combination of AppsFlyer docs and Apphud swift examples