update: 更新推送状态接口和对应的log
--story=1020629 --user=yufei.hu 【中台】【SDK】加入消息弹框管理,中台 noti_perm 打点逻辑优化 https://www.tapd.cn/33527076/s/1152197dev
							parent
							
								
									338c886ef6
								
							
						
					
					
						commit
						3d8bc1c642
					
				|  | @ -264,6 +264,7 @@ namespace Guru | |||
|             UnityEngine.Debug.Log($"[SDK] ---- Check Noti Permission: {isGranted}"); | ||||
|             if (isGranted) | ||||
|             { | ||||
|                 UnityEngine.Debug.Log($"[SDK] ---- Set Notification Permission: {status}"); | ||||
|                 SetNotiPerm(status); | ||||
|                 return; | ||||
|             } | ||||
|  | @ -280,12 +281,30 @@ namespace Guru | |||
|             UnityEngine.Debug.Log($"[SDK] ---- RequestNotificationPermission"); | ||||
|             NotificationService.RequestPermission(status => | ||||
|             { | ||||
|                 UnityEngine.Debug.Log($"[SDK] ---- Get Notification Permission: {status}"); | ||||
|                 SetNotiPerm(status); | ||||
|                 UnityEngine.Debug.Log($"[SDK] ---- Set Notification Permission: {status}"); | ||||
|                 if(!string.IsNullOrEmpty(status)) SetNotiPerm(status); | ||||
|                  | ||||
|                 callback?.Invoke(status); | ||||
|             }); | ||||
|         } | ||||
|          | ||||
|         /// <summary> | ||||
|         /// 获取 Notification 状态值 | ||||
|         /// </summary> | ||||
|         /// <returns></returns> | ||||
|         public static string GetNotificationStatus() | ||||
|         { | ||||
|             return NotificationService.GetStatus(); | ||||
|         } | ||||
|          | ||||
|         /// <summary> | ||||
|         /// 用户是否已经获取了 Notification 授权了 | ||||
|         /// </summary> | ||||
|         /// <returns></returns> | ||||
|         public static bool IsNotificationPermissionGranted() | ||||
|         { | ||||
|             return NotificationService.IsPermissionGranted(); | ||||
|         } | ||||
| 
 | ||||
|         #endregion | ||||
|          | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue