Refs #217: add missing configuration point of flutter_apns

This commit is contained in:
Salvatore Giordano
2021-01-18 10:16:50 +01:00
parent bee382acb2
commit ade6050a65
3 changed files with 13 additions and 9 deletions
+4
View File
@@ -9,6 +9,10 @@ import Flutter
_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
) -> Bool {
if #available(iOS 10.0, *) {
UNUserNotificationCenter.current().delegate = self as? UNUserNotificationCenterDelegate
}
if let messageQueue = sharedDefaults?.stringArray(forKey: "messageQueue") {
UserDefaults.standard.setValue(messageQueue, forKey: "flutter.messageQueue")
sharedDefaults?.removeObject(forKey: "messageQueue")