fix: 修复 Android 平台 ATT 引用报错的 BUG
parent
98c025a285
commit
c50c5d170e
|
|
@ -65,8 +65,6 @@ namespace Guru
|
||||||
if (_hasConsentCalled) return;
|
if (_hasConsentCalled) return;
|
||||||
_hasConsentCalled = true;
|
_hasConsentCalled = true;
|
||||||
|
|
||||||
_attType = InitConfig.UseCustomConsent ? ATTManager.GUIDE_TYPE_CUSTOM : ATTManager.GUIDE_TYPE_ADMOB; // 点位属性确定
|
|
||||||
|
|
||||||
bool enableCountryCheck = _appServicesConfig.DMACountryCheck();
|
bool enableCountryCheck = _appServicesConfig.DMACountryCheck();
|
||||||
string dmaMapRule = _appServicesConfig.DMAMapRule();
|
string dmaMapRule = _appServicesConfig.DMAMapRule();
|
||||||
|
|
||||||
|
|
@ -128,6 +126,7 @@ namespace Guru
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static void InitAttStatus()
|
public static void InitAttStatus()
|
||||||
{
|
{
|
||||||
|
_attType = InitConfig.UseCustomConsent ? ATTManager.GUIDE_TYPE_CUSTOM : ATTManager.GUIDE_TYPE_ADMOB; // 点位属性确定
|
||||||
_initialAttStatus = ATTManager.GetStatus();
|
_initialAttStatus = ATTManager.GetStatus();
|
||||||
SetUserProperty(Analytics.ParameterATTStatus, _initialAttStatus); // 上报一个初始的状态
|
SetUserProperty(Analytics.ParameterATTStatus, _initialAttStatus); // 上报一个初始的状态
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue