B. Petersen 4 سال پیش
والد
کامیت
a0fefed84e
1فایلهای تغییر یافته به همراه5 افزوده شده و 1 حذف شده
  1. 5 1
      deltachat-ios/AppDelegate.swift

+ 5 - 1
deltachat-ios/AppDelegate.swift

@@ -73,6 +73,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
         msg.text = "I. remoteNotification: \(String(describing: notificationOption))"
         dcContext.addDeviceMessage(label: nil, msg: msg)
 
+        /*
         let content = UNMutableNotificationContent()
         content.title = "I. TITLE"
         content.body = "I. BODY"
@@ -84,7 +85,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
         if dcContext.isConfigured() && !UserDefaults.standard.bool(forKey: "notifications_disabled") {
             registerForNotifications()
         }
-
+        */
 
         return true
     }
@@ -360,6 +361,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
         msg.text = "II. didReceiveRemoteNotification: \(String(describing: userInfo))"
         dcContext.addDeviceMessage(label: nil, msg: msg)
 
+        /*
         let content = UNMutableNotificationContent()
         content.title = "II. TITLE"
         content.body = "II. BODY"
@@ -367,6 +369,8 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
         let trigger = UNTimeIntervalNotificationTrigger(timeInterval: 0.1, repeats: false)
         let request = UNNotificationRequest(identifier: Constants.notificationIdentifier, content: content, trigger: trigger)
         UNUserNotificationCenter.current().add(request, withCompletionHandler: nil)
+        */
+        dcContext.maybeStartIo()
     }
     
     private func userNotificationCenter(_: UNUserNotificationCenter, willPresent _: UNNotification, withCompletionHandler completionHandler: @escaping (UNNotificationPresentationOptions) -> Void) {