mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-21 04:33:30 +01:00
[AltServer] Fixes notifications not appearing on Catalina
This commit is contained in:
@@ -47,6 +47,9 @@ class AppDelegate: NSObject, NSApplicationDelegate {
|
||||
|
||||
self.connectedDevicesMenu.delegate = self
|
||||
|
||||
UNUserNotificationCenter.current().requestAuthorization(options: [.alert]) { (success, error) in
|
||||
guard success else { return }
|
||||
|
||||
if !UserDefaults.standard.didPresentInitialNotification
|
||||
{
|
||||
let content = UNMutableNotificationContent()
|
||||
@@ -59,6 +62,7 @@ class AppDelegate: NSObject, NSApplicationDelegate {
|
||||
UserDefaults.standard.didPresentInitialNotification = true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func applicationWillTerminate(_ aNotification: Notification)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user