update: 调整SDK执行时序
							parent
							
								
									3062467e84
								
							
						
					
					
						commit
						a063c4866d
					
				|  | @ -319,7 +319,7 @@ namespace Guru | |||
|                 // StartAppleReviewFlow(); // 直接显示 ATT 弹窗, 跳过 Consent 流程 | ||||
|                 Try(() => | ||||
|                 { | ||||
|                     LogI($"#4.5.0 ---  StartAppleReviewFlow ---"); | ||||
|                     LogI($"#4.5 ---  StartAppleReviewFlow ---"); | ||||
|                     StartAppleReviewFlow(); // 直接显示 ATT 弹窗, 跳过 Consent 流程 | ||||
|                 }, ex => | ||||
|                 { | ||||
|  | @ -331,26 +331,28 @@ namespace Guru | |||
|             //----------- Set Consent ---------------- | ||||
|             if (!InitConfig.UseCustomConsent && !appleReview) | ||||
|             { | ||||
|                 // LogI($"--- #3 Start Consent Flow ---"); | ||||
|                 // StartConsentFlow(); | ||||
|                 LogI($"#4.6 --- Start Consent Flow ---"); | ||||
|                 Try(StartConsentFlow, ex => | ||||
|                 { | ||||
|                     Debug.LogError($"--- ERROR on StartConsentFlow: {ex.Message}"); | ||||
|                 }); | ||||
|             } | ||||
| 
 | ||||
|             IsServiceReady = true; | ||||
|              | ||||
|             // 中台服务初始化结束 | ||||
|             Callbacks.SDK.InvokeOnGuruServiceReady(); | ||||
|             LogI($"#5.0 --- sync sdk time ---"); | ||||
|             LogSDKInitTime((DateTime.Now.ToUniversalTime() - _initTime).TotalSeconds); | ||||
|              | ||||
| #if UNITY_ANDROID | ||||
|             LogI($"#5.1 --- Android StartAndroidDebugCmds---"); | ||||
|             // Android 命令行调试 | ||||
|             StartAndroidDebugCmds();            | ||||
| #endif | ||||
|              | ||||
|             LogI($"#5 --- sync sdk time ---"); | ||||
|             LogSDKInitTime((DateTime.Now.ToUniversalTime() - _initTime).TotalSeconds); | ||||
|              | ||||
|             IsServiceReady = true; | ||||
|              | ||||
|             // 中台服务初始化结束 | ||||
|             Callbacks.SDK.InvokeOnGuruServiceReady(); | ||||
| 
 | ||||
|         } | ||||
|          | ||||
|         /// <summary> | ||||
|  | @ -425,17 +427,17 @@ namespace Guru | |||
| 
 | ||||
|         private void OnBLevelChanged(int bLevel) | ||||
|         { | ||||
|             Debug.Log($"[ANU][SDK] --- OnBLevelChanged: {bLevel}"); | ||||
|             Analytics.SetBLevel(bLevel); | ||||
|         } | ||||
| 
 | ||||
|         private void OnBPlayChanged(int bPlay) | ||||
|         { | ||||
|             Debug.Log($"[ANU][SDK] --- OnBPlayChanged: {bPlay}"); | ||||
|             Analytics.SetBPlay(bPlay); | ||||
|         } | ||||
|          | ||||
|          | ||||
|          | ||||
|          | ||||
|         #endregion | ||||
|          | ||||
|         #region Logging | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue