iOS clear all push notification when app become active

This commit is contained in:
LittleSheep 2024-06-24 13:00:01 +08:00
parent a0a002974c
commit 7034ff80db

View File

@ -13,5 +13,6 @@ import Flutter
override func applicationDidBecomeActive(_ application: UIApplication) { override func applicationDidBecomeActive(_ application: UIApplication) {
application.applicationIconBadgeNumber = 0; application.applicationIconBadgeNumber = 0;
UNUserNotificationCenter.current().removeAllDeliveredNotifications();
} }
} }