From 9abf27ac6375b5cefa89e2a1001ab6a522d851ef Mon Sep 17 00:00:00 2001 From: Maurice C Parker Date: Fri, 21 Aug 2020 12:51:53 -0500 Subject: [PATCH] Restore request for notification authorization on startup since we have the badge on by default. Issue #2375 --- Mac/AppDelegate.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Mac/AppDelegate.swift b/Mac/AppDelegate.swift index 322b772f7..35e95b965 100644 --- a/Mac/AppDelegate.swift +++ b/Mac/AppDelegate.swift @@ -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 {