Advertisement
Guest User

AppDelegate

a guest
Apr 4th, 2020
394
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Swift 0.52 KB | None | 0 0
  1. @UIApplicationMain
  2. @objc class AppDelegate: FlutterAppDelegate {
  3.    
  4.   override func application(
  5.     _ application: UIApplication,
  6.     didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?
  7.   ) -> Bool {
  8.     GeneratedPluginRegistrant.register(with: self)
  9.     if #available(iOS 10.0, *) {
  10.       UNUserNotificationCenter.current().delegate = self as? UNUserNotificationCenterDelegate
  11.     }
  12.     return super.application(application, didFinishLaunchingWithOptions: launchOptions)
  13.   }
  14.    
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement