Solian/ios/Runner/AppDelegate.swift

19 lines
644 B
Swift
Raw Normal View History

2024-05-18 10:17:16 +00:00
import UIKit
import Flutter
@UIApplicationMain
@objc class AppDelegate: FlutterAppDelegate {
2024-06-08 13:35:50 +00:00
override func application(
_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
) -> Bool {
GeneratedPluginRegistrant.register(with: self)
return super.application(application, didFinishLaunchingWithOptions: launchOptions)
}
override func applicationDidBecomeActive(_ application: UIApplication) {
application.applicationIconBadgeNumber = 0;
UNUserNotificationCenter.current().removeAllDeliveredNotifications();
2024-06-08 13:35:50 +00:00
}
2024-05-18 10:17:16 +00:00
}