Skip to content

Commit

Permalink
Uncomment out unregister device token
Browse files Browse the repository at this point in the history
  • Loading branch information
nriedman committed Sep 4, 2024
1 parent 183993a commit 0302f7b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
1 change: 1 addition & 0 deletions ENGAGEHF/Account/AdditionalAccountSections.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import SpeziDevicesUI
import SpeziLicense
import SwiftUI


struct AdditionalAccountSections: View {
var body: some View {
Section {
Expand Down
23 changes: 12 additions & 11 deletions ENGAGEHF/Managers/NotificationManager/NotificationManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -89,17 +89,18 @@ class NotificationManager: Module, NotificationHandler, NotificationTokenHandler
)
)
}
// case .disassociatingAccount:
// do {
// _ = try await self.unregisterDeviceToken()
// } catch {
// self.state = .error(
// AnyLocalizedError(
// error: error,
// defaultErrorDescription: "Unable to unregister for remote notifications."
// )
// )
// }
case .disassociatingAccount:
do {
_ = try await self.unregisterDeviceToken()
} catch {
self.logger.error("\(error.localizedDescription)")
self.state = .error(
AnyLocalizedError(
error: error,
defaultErrorDescription: "Unable to unregister for remote notifications."
)
)
}
default:
break
}
Expand Down

0 comments on commit 0302f7b

Please sign in to comment.