parent
							
								
									80e38bf85d
								
							
						
					
					
						commit
						9e7e94ef36
					
				|  | @ -59,6 +59,14 @@ namespace Guru.Notification | ||||||
|         public void RequestPermission(Action<string> callback = null) |         public void RequestPermission(Action<string> callback = null) | ||||||
|         { |         { | ||||||
|             if (!_initOnce) Init(); |             if (!_initOnce) Init(); | ||||||
|  | 
 | ||||||
|  |             if (_notiStatus == STATUS_GRANTED || _notiStatus == STATUS_DENIDED) | ||||||
|  |             { | ||||||
|  |                 Debug.Log($"[SDK][Noti][iOS] --- Already has Status: {_notiStatus}"); | ||||||
|  |                 callback?.Invoke(_notiStatus); // 已获得授权, 直接返回结果 | ||||||
|  |                 return; | ||||||
|  |             } | ||||||
|  |              | ||||||
| #if UNITY_IOS | #if UNITY_IOS | ||||||
|             RequestIOSPermission(callback); |             RequestIOSPermission(callback); | ||||||
| #endif | #endif | ||||||
|  | @ -70,10 +78,8 @@ namespace Guru.Notification | ||||||
|         private void InitPlugins() |         private void InitPlugins() | ||||||
|         { |         { | ||||||
|             UpdateStatus(); |             UpdateStatus(); | ||||||
|              |  | ||||||
|         } |         } | ||||||
|          |          | ||||||
| 
 |  | ||||||
|         /// <summary> |         /// <summary> | ||||||
|         /// 更新状态 |         /// 更新状态 | ||||||
|         /// </summary> |         /// </summary> | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue