Comment out application badge feature
This commit is contained in:
@ -99,24 +99,24 @@ struct FiltersView: View {
|
||||
}
|
||||
}
|
||||
|
||||
Section(header: Text("Application Badge")) {
|
||||
Toggle("Display Badge Count", isOn: $viewModel.hasBadgePermission)
|
||||
.onChange(of: viewModel.hasBadgePermission) { _ in
|
||||
if viewModel.hasBadgePermission {
|
||||
viewModel.requestBadgePermission()
|
||||
} else {
|
||||
UIApplication.shared.applicationIconBadgeNumber = 0
|
||||
}
|
||||
}
|
||||
|
||||
if viewModel.hasBadgePermission {
|
||||
NavigationLink(destination: {
|
||||
SelectBadgeFilterView(viewModel: viewModel)
|
||||
}, label: {
|
||||
Text(viewModel.badgeFilter)
|
||||
})
|
||||
}
|
||||
}
|
||||
// Section(header: Text("Application Badge")) {
|
||||
// Toggle("Display Badge Count", isOn: $viewModel.hasBadgePermission)
|
||||
// .onChange(of: viewModel.hasBadgePermission) { _ in
|
||||
// if viewModel.hasBadgePermission {
|
||||
// viewModel.requestBadgePermission()
|
||||
// } else {
|
||||
// UIApplication.shared.applicationIconBadgeNumber = 0
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// if viewModel.hasBadgePermission {
|
||||
// NavigationLink(destination: {
|
||||
// SelectBadgeFilterView(viewModel: viewModel)
|
||||
// }, label: {
|
||||
// Text(viewModel.badgeFilter)
|
||||
// })
|
||||
// }
|
||||
// }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -56,6 +56,9 @@ private let logger = Logger(subsystem: "app.omnivore", category: "app-delegate")
|
||||
Services.registerBackgroundFetch()
|
||||
configureFirebase()
|
||||
|
||||
// TODO: remove after filter badge is re-enabled
|
||||
UIApplication.shared.applicationIconBadgeNumber = 0
|
||||
|
||||
// swiftlint:disable:next line_length
|
||||
NotificationCenter.default.addObserver(forName: Notification.Name("ReconfigurePushNotifications"), object: nil, queue: OperationQueue.main) { _ in
|
||||
if UserDefaults.standard.bool(forKey: UserDefaultKey.notificationsEnabled.rawValue) {
|
||||
|
||||
Reference in New Issue
Block a user