2026-01-12 14:12:41 +05:30
|
|
|
import Flutter
|
|
|
|
|
import UIKit
|
2026-03-09 06:07:36 +05:30
|
|
|
import FirebaseMessaging
|
2026-01-12 14:12:41 +05:30
|
|
|
|
|
|
|
|
@main
|
2026-03-09 06:04:54 +05:30
|
|
|
@objc class AppDelegate: FlutterAppDelegate {
|
2026-01-12 14:12:41 +05:30
|
|
|
override func application(
|
|
|
|
|
_ application: UIApplication,
|
|
|
|
|
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
|
|
|
|
|
) -> Bool {
|
2026-03-09 06:04:54 +05:30
|
|
|
GeneratedPluginRegistrant.register(with: self)
|
2026-01-12 14:12:41 +05:30
|
|
|
return super.application(application, didFinishLaunchingWithOptions: launchOptions)
|
|
|
|
|
}
|
2026-03-09 06:07:36 +05:30
|
|
|
|
|
|
|
|
// Forward APNs token to Firebase for FCM
|
|
|
|
|
override func application(
|
|
|
|
|
_ application: UIApplication,
|
|
|
|
|
didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data
|
|
|
|
|
) {
|
|
|
|
|
Messaging.messaging().apnsToken = deviceToken
|
|
|
|
|
super.application(application, didRegisterForRemoteNotificationsWithDeviceToken: deviceToken)
|
|
|
|
|
}
|
2026-01-12 14:12:41 +05:30
|
|
|
}
|