Restore request for notification authorization on startup since we have the badge on by default. Issue #2375

This commit is contained in:
Maurice C Parker 2020-08-21 12:51:53 -05:00
parent 0913963c97
commit 9abf27ac63
1 changed files with 2 additions and 0 deletions

View File

@ -231,6 +231,8 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSUserInterfaceValidations,
refreshTimer = AccountRefreshTimer()
syncTimer = ArticleStatusSyncTimer()
UNUserNotificationCenter.current().requestAuthorization(options:[.badge]) { (granted, error) in }
UNUserNotificationCenter.current().getNotificationSettings { (settings) in
if settings.authorizationStatus == .authorized {
DispatchQueue.main.async {