MeetingBar icon indicating copy to clipboard operation
MeetingBar copied to clipboard

Bug: Notification warning overlaps with notification setting

Open jaklan opened this issue 2 years ago β€’ 4 comments

App version 4.0.6

Installation source homebrew

Describe the bug As in the picture, the setting is not clickable due to that: image

Desktop (please complete the following information):

  • macOS Monterey 12.4

jaklan avatar Jul 26 '22 12:07 jaklan

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.

image

GrahamWilliams-DMT avatar Aug 12 '22 09:08 GrahamWilliams-DMT

@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.

jaklan avatar Aug 12 '22 09:08 jaklan

Please check this as well

image

stenalpjolly avatar Aug 17 '22 06:08 stenalpjolly

Sorry, my bad, it's only because of a bug in SwiftUI view. I'll fix it in the next release!

leits avatar Aug 17 '22 18:08 leits

Added fix to the next release.

leits avatar Oct 12 '22 16:10 leits