diff --git a/SwiftPackage/Sources/BridgeClientUI/BridgeClientAppManager.swift b/SwiftPackage/Sources/BridgeClientUI/BridgeClientAppManager.swift index 6b2dede8f..7c5dd2b2f 100644 --- a/SwiftPackage/Sources/BridgeClientUI/BridgeClientAppManager.swift +++ b/SwiftPackage/Sources/BridgeClientUI/BridgeClientAppManager.swift @@ -142,6 +142,7 @@ open class BridgeClientAppManager : ObservableObject { } public func signOut() { + localNotificationManager.clearAll() authManager.signOut() isOnboardingFinished = false userSessionInfo = nil diff --git a/SwiftPackage/Sources/BridgeClientUI/LocalNotificationManager.swift b/SwiftPackage/Sources/BridgeClientUI/LocalNotificationManager.swift index 6d947c7dd..f1890bcbb 100644 --- a/SwiftPackage/Sources/BridgeClientUI/LocalNotificationManager.swift +++ b/SwiftPackage/Sources/BridgeClientUI/LocalNotificationManager.swift @@ -152,6 +152,11 @@ open class LocalNotificationManager : NSObject, UNUserNotificationCenterDelegate return requests } + public func clearAll() { + removeAllPendingNotifications() { + } + } + private func removeAllPendingNotifications(_ completionHandler: @escaping (() -> Void)) { UNUserNotificationCenter.current().getPendingNotificationRequests { (requests) in let requestIds: [String] = requests.compactMap {