我使用城市飛艇接受我的iOS 10(SWIFT)的應用程序推送通知。我遇到以下問題,請求您幫忙解決。管理推送通知
無法當應用程序正在運行前景
要隱藏通知躲通知,我已經嘗試了以下任務..
刪除實現委託方法FUNC userNotificationCenter的(_中心:UNUserNotificationCenter, willPresent通知:未通知, withCompletionHandler completionHandler:@escaping(UNNotificationPresentationOptions) - >空隙)
我試圖通過completionHandler(UNNotificationPresentationOptionNone) 來轉義/隱藏通知吐司,但「UNNotificationPresentationOptionNone」不再可用。
completionHandler([]) - 這是行不通的。 我試圖通過「UNNotificationPresentationOptionNone」在
清除通知
如何清除/從列表中刪除交付(一旦用戶閱讀或取消)的通知,並相應地更新徽章圖標。
感謝