🐛 Fix NSE, get token from flutter side in native iOS

This commit is contained in:
2025-06-02 02:23:59 +08:00
parent c00987dfdc
commit e431a54a89
7 changed files with 59 additions and 11 deletions

View File

@ -1,6 +1,8 @@
import Flutter
import UIKit
import shared_preferences_foundation
@main
@objc class AppDelegate: FlutterAppDelegate {
let notifyDelegate = NotifyDelegate()
@ -10,6 +12,7 @@ import UIKit
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
) -> Bool {
UNUserNotificationCenter.current().delegate = notifyDelegate
GeneratedPluginRegistrant.register(with: self)
return super.application(application, didFinishLaunchingWithOptions: launchOptions)
}