Add GDPR Consent and Log Printing

This commit is contained in:
wsycarlos 2026-01-21 16:20:29 +08:00
parent 2ea0ac1c88
commit 1a10550898
2 changed files with 20 additions and 1 deletions

View File

@ -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);
}
}

View File

@ -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"
}