Add GDPR Consent and Log Printing
This commit is contained in:
parent
2ea0ac1c88
commit
1a10550898
@ -1,3 +1,4 @@
|
||||
using AppsFlyerSDK;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
@ -13,5 +14,23 @@ public static class CustomAppsFlyerInitializer
|
||||
af.devKey = devKey;
|
||||
af.appID = appID;
|
||||
af.getConversionData = getConversionData;
|
||||
|
||||
if (isDebug)
|
||||
{
|
||||
AppsFlyer.OnInAppResponse += (sender, args) =>
|
||||
{
|
||||
var af_args = args as AppsFlyerRequestEventArgs;
|
||||
AppsFlyer.AFLog("AppsFlyerOnInAppResponse", " status code " + af_args.statusCode);
|
||||
};
|
||||
|
||||
AppsFlyer.OnRequestResponse += (sender, args) =>
|
||||
{
|
||||
var af_args = args as AppsFlyerRequestEventArgs;
|
||||
AppsFlyer.AFLog("AppsFlyerOnRequestResponse", " status code " + af_args.statusCode);
|
||||
};
|
||||
}
|
||||
|
||||
AppsFlyerConsent consent = new AppsFlyerConsent(true, true, true, true);
|
||||
AppsFlyer.setConsentData(consent);
|
||||
}
|
||||
}
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "com.bywaystudios.appsflyersdk",
|
||||
"displayName": "AppsFlyerSDK",
|
||||
"version": "6.17.72-exp.2",
|
||||
"version": "6.17.72-exp.3",
|
||||
"description": "AppsFlyer Unity SDK"
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user