fix: 修复 Android 平台 ATT 引用报错的 BUG

deeplink
胡宇飞 2024-03-04 13:12:31 +08:00
parent 98c025a285
commit c50c5d170e
1 changed files with 1 additions and 2 deletions

View File

@ -65,8 +65,6 @@ namespace Guru
if (_hasConsentCalled) return;
_hasConsentCalled = true;
_attType = InitConfig.UseCustomConsent ? ATTManager.GUIDE_TYPE_CUSTOM : ATTManager.GUIDE_TYPE_ADMOB; // 点位属性确定
bool enableCountryCheck = _appServicesConfig.DMACountryCheck();
string dmaMapRule = _appServicesConfig.DMAMapRule();
@ -128,6 +126,7 @@ namespace Guru
/// </summary>
public static void InitAttStatus()
{
_attType = InitConfig.UseCustomConsent ? ATTManager.GUIDE_TYPE_CUSTOM : ATTManager.GUIDE_TYPE_ADMOB; // 点位属性确定
_initialAttStatus = ATTManager.GetStatus();
SetUserProperty(Analytics.ParameterATTStatus, _initialAttStatus); // 上报一个初始的状态
}