Files
SimpleCloudNotifier/flutter/ios/Runner/AppDelegate.swift
Andreas Higel 6306555a30
All checks were successful
Build Docker and Deploy / Build Docker Container (push) Successful in 1m8s
Build Docker and Deploy / Run Unit-Tests (push) Successful in 9m16s
Build Docker and Deploy / Deploy to Server (push) Successful in 8s
Integrate CocoaPods support and update project configurations for iOS and macOS builds.
2025-11-10 14:11:30 +01:00

28 lines
807 B
Swift

import UIKit
import Flutter
import flutter_local_notifications
@main
@objc class AppDelegate: FlutterAppDelegate {
override func application(
_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
) -> Bool {
// This is required to make any communication available in the action isolate.
FlutterLocalNotificationsPlugin.setPluginRegistrantCallback { (registry) in
GeneratedPluginRegistrant.register(with: registry)
}
if #available(iOS 10.0, *) {
UNUserNotificationCenter.current().delegate = self as? UNUserNotificationCenterDelegate
}
GeneratedPluginRegistrant.register(with: self)
return super.application(application, didFinishLaunchingWithOptions: launchOptions)
}
}