MeetingBar
MeetingBar copied to clipboard
Bug: Notification warning overlaps with notification setting
App version 4.0.6
Installation source homebrew
Describe the bug
As in the picture, the setting is not clickable due to that:
Desktop (please complete the following information):
- macOS Monterey 12.4
After some digging around, having absolutely no idea what I was doing, I found:
func checkNotificationSettings() -> (Bool, Bool) {
var noAlertStyle = false
var notificationsDisabled = false
let center = UNUserNotificationCenter.current()
let group = DispatchGroup()
group.enter()
center.getNotificationSettings { notificationSettings in
noAlertStyle = notificationSettings.alertStyle != UNAlertStyle.alert
notificationsDisabled = notificationSettings.authorizationStatus == UNAuthorizationStatus.denied
group.leave()
}
Seems to be looking specifically for "Alert" style in notifications, not banner. Despite having "Allow Notifications" enabled, I thought this may be enough. Switching to Alerts solves this.
@GrahamWilliams-DMT well, of course it makes sense that when you switch to alerts
the warning is gone, but that's not a solution if you want to stay with banners
and not really related to the above GUI issue itself.
Please check this as well
Sorry, my bad, it's only because of a bug in SwiftUI view. I'll fix it in the next release!
Added fix to the next release.