diff --git a/PadelClub/AppDelegate.swift b/PadelClub/AppDelegate.swift index 14c46c1..e3d9e73 100644 --- a/PadelClub/AppDelegate.swift +++ b/PadelClub/AppDelegate.swift @@ -14,6 +14,9 @@ class AppDelegate : NSObject, UIApplicationDelegate, UNUserNotificationCenterDel func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions:[UIApplication.LaunchOptionsKey: Any]?) -> Bool { // Override point for customization after application launch. + + _ = Guard.main // init guard + UIApplication.shared.registerForRemoteNotifications() UNUserNotificationCenter.current().delegate = self diff --git a/PadelClub/Data/DataStore.swift b/PadelClub/Data/DataStore.swift index 2a05d74..d9d04ac 100644 --- a/PadelClub/Data/DataStore.swift +++ b/PadelClub/Data/DataStore.swift @@ -67,9 +67,7 @@ class DataStore: ObservableObject { StoreCenter.main.logsFailedAPICalls() var synchronized: Bool = true - - _ = Guard.main // init - + #if DEBUG if let sync = PListReader.readBool(plist: "local", key: "synchronized") { synchronized = sync