[英]IOS how to remove notification from notification center while app is terminated by user
我想知道當應用程序被用戶終止時,WhatsApp 如何從通知中心刪除通知(例如從網絡讀取時)
我正在使用靜默通知,但如果被用戶關閉,它不會啟動應用程序,
對於 ios13 中的 voip 通知,我們必須通過報告新呼叫來響應 pushkit 通知,否則應用程序將崩潰
也許你可以在UNUserNotificationCenter.h
找到一些線索:
- (void)removeDeliveredNotificationsWithIdentifiers:(NSArray<NSString *> *)identifiers __API_UNAVAILABLE(tvos);
- (void)removeAllDeliveredNotifications __API_UNAVAILABLE(tvos);
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.