✨ iOS clear all push notification when app become active
This commit is contained in:
parent
a0a002974c
commit
7034ff80db
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user