Add the alert and sound notification permissions so that they show on the System Preferences

This commit is contained in:
Maurice Parker
2022-10-05 13:15:38 -05:00
parent f38ab1ab51
commit 00f40787c7

View File

@@ -243,7 +243,7 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSUserInterfaceValidations,
refreshTimer = AccountRefreshTimer()
syncTimer = ArticleStatusSyncTimer()
UNUserNotificationCenter.current().requestAuthorization(options:[.badge]) { (granted, error) in }
UNUserNotificationCenter.current().requestAuthorization(options:[.badge, .alert, .badge]) { (granted, error) in }
UNUserNotificationCenter.current().getNotificationSettings { (settings) in
if settings.authorizationStatus == .authorized {