[AltServer] Fixes notifications not appearing on Catalina

This commit is contained in:
Riley Testut
2019-11-04 15:07:51 -08:00
parent 79f05b0a89
commit 0afc87cad4

View File

@@ -47,6 +47,9 @@ class AppDelegate: NSObject, NSApplicationDelegate {
self.connectedDevicesMenu.delegate = self self.connectedDevicesMenu.delegate = self
UNUserNotificationCenter.current().requestAuthorization(options: [.alert]) { (success, error) in
guard success else { return }
if !UserDefaults.standard.didPresentInitialNotification if !UserDefaults.standard.didPresentInitialNotification
{ {
let content = UNMutableNotificationContent() let content = UNMutableNotificationContent()
@@ -59,6 +62,7 @@ class AppDelegate: NSObject, NSApplicationDelegate {
UserDefaults.standard.didPresentInitialNotification = true UserDefaults.standard.didPresentInitialNotification = true
} }
} }
}
func applicationWillTerminate(_ aNotification: Notification) func applicationWillTerminate(_ aNotification: Notification)
{ {