feat: 实现日历提醒 in-app fallback 机制及通知服务重构
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import Flutter
|
||||
import flutter_local_notifications
|
||||
import UIKit
|
||||
import UserNotifications
|
||||
|
||||
@@ -8,6 +9,9 @@ import UserNotifications
|
||||
_ application: UIApplication,
|
||||
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
|
||||
) -> Bool {
|
||||
FlutterLocalNotificationsPlugin.setPluginRegistrantCallback { registry in
|
||||
GeneratedPluginRegistrant.register(with: registry)
|
||||
}
|
||||
GeneratedPluginRegistrant.register(with: self)
|
||||
if #available(iOS 10.0, *) {
|
||||
UNUserNotificationCenter.current().delegate = self
|
||||
|
||||
Reference in New Issue
Block a user