marinofaggiana 4 years ago
parent
commit
8cbc324bd3
1 changed files with 8 additions and 9 deletions
  1. 8 9
      iOSClient/AppDelegate.m

+ 8 - 9
iOSClient/AppDelegate.m

@@ -267,17 +267,16 @@
     [[NSNotificationCenter defaultCenter] postNotificationOnMainThreadName:k_notificationCenter_applicationDidEnterBackground object:nil];
     [self passcodeWithAutomaticallyPromptForBiometricValidation:false];
     
-    if([[UIDevice currentDevice] respondsToSelector:@selector(isMultitaskingSupported)]) {
+    /*
+    __block UIBackgroundTaskIdentifier background_task;
         
-        __block UIBackgroundTaskIdentifier background_task;
-        
-        background_task = [application beginBackgroundTaskWithExpirationHandler:^ {
+    background_task = [application beginBackgroundTaskWithExpirationHandler:^ {
             
-            //Clean up code. Tell the system that we are done.
-            [application endBackgroundTask: background_task];
-            background_task = UIBackgroundTaskInvalid;
-        }];
-    }
+        //Clean up code. Tell the system that we are done.
+        [application endBackgroundTask: background_task];
+        background_task = UIBackgroundTaskInvalid;
+    }];
+    */
 }
 
 //