diff --git a/Shared/AppDelegate.swift b/Shared/AppDelegate.swift index 84649a7..d0abcbf 100644 --- a/Shared/AppDelegate.swift +++ b/Shared/AppDelegate.swift @@ -12,9 +12,6 @@ import WidgetKit // AppDelegate.swift class AppDelegate: NSObject, UIApplicationDelegate { - - - func application(_ application: UIApplication, willFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool { // PersistenceController.shared.clearDB() application.registerForRemoteNotifications() diff --git a/Shared/FeelsApp.swift b/Shared/FeelsApp.swift index 6e2f493..42e36f7 100644 --- a/Shared/FeelsApp.swift +++ b/Shared/FeelsApp.swift @@ -35,6 +35,10 @@ struct FeelsApp: App { print("background") WidgetCenter.shared.reloadAllTimelines() } + + if phase == .active { + UIApplication.shared.applicationIconBadgeNumber = 0 + } } } }