diff --git a/ios/Runner/AppDelegate.swift b/ios/Runner/AppDelegate.swift index 4579387..11c399c 100644 --- a/ios/Runner/AppDelegate.swift +++ b/ios/Runner/AppDelegate.swift @@ -9,7 +9,7 @@ import Flutter ) -> Bool { GeneratedPluginRegistrant.register(with: self) if #available(iOS 10.0, *) { - UNUserNotificationCenter.current().delegate = self as ? UNUserNotificationCenterDelegate + UNUserNotificationCenter.current().delegate = self as? UNUserNotificationCenterDelegate } return super.application(application, didFinishLaunchingWithOptions: launchOptions) }