添加firebase初始化标志
This commit is contained in:
parent
f38e306cf4
commit
567d1ff812
|
|
@ -13,6 +13,7 @@ namespace WZ
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class FireBaseAnalyticsManager : D_MonoSingleton<FireBaseAnalyticsManager>
|
public class FireBaseAnalyticsManager : D_MonoSingleton<FireBaseAnalyticsManager>
|
||||||
{
|
{
|
||||||
|
|
||||||
private const string KEY_SUPER_PROPERTIES = "KEY_SUPER_PROPERTIES";
|
private const string KEY_SUPER_PROPERTIES = "KEY_SUPER_PROPERTIES";
|
||||||
|
|
||||||
private Dictionary<string, object> superProperties = new Dictionary<string, object>();
|
private Dictionary<string, object> superProperties = new Dictionary<string, object>();
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,7 @@ namespace WZ
|
||||||
{
|
{
|
||||||
public class FireBaseRemoteConfigManager : D_MonoSingleton<FireBaseRemoteConfigManager>
|
public class FireBaseRemoteConfigManager : D_MonoSingleton<FireBaseRemoteConfigManager>
|
||||||
{
|
{
|
||||||
|
public bool IsInitialized { get; private set; } = false;
|
||||||
public void FetchRemoteConfig()
|
public void FetchRemoteConfig()
|
||||||
{
|
{
|
||||||
// Firebase.FirebaseApp.CheckAndFixDependenciesAsync().ContinueWith(task =>
|
// Firebase.FirebaseApp.CheckAndFixDependenciesAsync().ContinueWith(task =>
|
||||||
|
|
@ -18,6 +19,7 @@ namespace WZ
|
||||||
{
|
{
|
||||||
FirebaseRemoteConfig.DefaultInstance.ActivateAsync().ContinueWithOnMainThread(task =>
|
FirebaseRemoteConfig.DefaultInstance.ActivateAsync().ContinueWithOnMainThread(task =>
|
||||||
{
|
{
|
||||||
|
IsInitialized = true;
|
||||||
AdjustTrackEvent.Instance.UpdateEventToken();
|
AdjustTrackEvent.Instance.UpdateEventToken();
|
||||||
// 获取广告位信息
|
// 获取广告位信息
|
||||||
AdConfigParser.Parse(GetRemoteConfigString("ad_config"));
|
AdConfigParser.Parse(GetRemoteConfigString("ad_config"));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue