From 048cc4c10d6e736760fe6aec89583cf91a7b370d Mon Sep 17 00:00:00 2001 From: Ali <> Date: Fri, 10 Jan 2020 18:28:50 +0400 Subject: [PATCH] Disable BackgroundTasks handler --- submodules/TelegramUI/TelegramUI/AppDelegate.swift | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/submodules/TelegramUI/TelegramUI/AppDelegate.swift b/submodules/TelegramUI/TelegramUI/AppDelegate.swift index 5ef9a5f5f1..57ed011275 100644 --- a/submodules/TelegramUI/TelegramUI/AppDelegate.swift +++ b/submodules/TelegramUI/TelegramUI/AppDelegate.swift @@ -1380,8 +1380,7 @@ final class SharedApplicationContext { UIApplication.shared.setStatusBarHidden(false, with: .none) } - #if canImport(BackgroundTasks) - if #available(iOS 13.0, *) { + /*if #available(iOS 13.0, *) { BGTaskScheduler.shared.register(forTaskWithIdentifier: baseAppBundleId + ".refresh", using: nil, launchHandler: { task in let _ = (self.sharedContextPromise.get() |> take(1) @@ -1400,8 +1399,7 @@ final class SharedApplicationContext { }) }) }) - } - #endif + }*/ return true }