parent
							
								
									80e38bf85d
								
							
						
					
					
						commit
						9e7e94ef36
					
				|  | @ -59,6 +59,14 @@ namespace Guru.Notification | |||
|         public void RequestPermission(Action<string> callback = null) | ||||
|         { | ||||
|             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 | ||||
|             RequestIOSPermission(callback); | ||||
| #endif | ||||
|  | @ -70,10 +78,8 @@ namespace Guru.Notification | |||
|         private void InitPlugins() | ||||
|         { | ||||
|             UpdateStatus(); | ||||
|              | ||||
|         } | ||||
|          | ||||
| 
 | ||||
|         /// <summary> | ||||
|         /// 更新状态 | ||||
|         /// </summary> | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue