diff --git a/PPAK_CVS/Sources/AppDelegate.swift b/PPAK_CVS/Sources/AppDelegate.swift index 68ebe7ec..b2be948b 100644 --- a/PPAK_CVS/Sources/AppDelegate.swift +++ b/PPAK_CVS/Sources/AppDelegate.swift @@ -44,12 +44,9 @@ class AppDelegate: UIResponder, UIApplicationDelegate { // User Notification Authorization let authOptions: UNAuthorizationOptions = [.alert, .badge, .sound] - UNUserNotificationCenter.current().requestAuthorization( - options: authOptions, - completionHandler: { _, error in + UNUserNotificationCenter.current().requestAuthorization(options: authOptions) { _, error in print("Error request notifications Authorization: \(error.debugDescription)") } - ) application.registerForRemoteNotifications() Thread.sleep(forTimeInterval: 1.0)