diff --git a/code/apps/Managed Software Center/Managed Software Center/AppDelegate.swift b/code/apps/Managed Software Center/Managed Software Center/AppDelegate.swift index 92043633..ffa3deb8 100644 --- a/code/apps/Managed Software Center/Managed Software Center/AppDelegate.swift +++ b/code/apps/Managed Software Center/Managed Software Center/AppDelegate.swift @@ -81,6 +81,11 @@ class AppDelegate: NSObject, NSApplicationDelegate, UNUserNotificationCenterDele // have the statuscontroller register for its own notifications statusController.registerForNotifications() + // we need to let UNUserNotificationCenter know we + // support Dock icon badges + let center = UNUserNotificationCenter.current() + center.requestAuthorization(options: [.badge], completionHandler: { _, _ in return }) + // user may have launched the app manually, or it may have // been launched by /usr/local/munki/managedsoftwareupdate // to display available updates, or via a munki: URL