Pārlūkot izejas kodu

call maybeNetwork on performFetchWithCompletionHandler (same as for didReceiveRemoteNotification)

B. Petersen 4 gadi atpakaļ
vecāks
revīzija
1ddbdf1d42
1 mainītis faili ar 2 papildinājumiem un 0 dzēšanām
  1. 2 0
      deltachat-ios/AppDelegate.swift

+ 2 - 0
deltachat-ios/AppDelegate.swift

@@ -111,7 +111,9 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
     // also, the faster we return, the sooner we get called again.
     func application(_: UIApplication, performFetchWithCompletionHandler completionHandler: @escaping (UIBackgroundFetchResult) -> Void) {
         logger.info("---- background-fetch ----")
+
         dcContext.maybeStartIo()
+        dcContext.maybeNetwork()
 
         DispatchQueue.main.asyncAfter(deadline: .now() + 10) {
             if !self.appIsInForeground {