mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-20 04:03:26 +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
|
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)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user