From 992813ad24bdb60bd7c1d98d8749e032c2ba5569 Mon Sep 17 00:00:00 2001 From: Niels Andriesse Date: Fri, 10 May 2019 12:04:39 +1000 Subject: [PATCH] Use UIApplicationBackgroundFetchIntervalMinimum --- Signal/src/AppDelegate.m | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Signal/src/AppDelegate.m b/Signal/src/AppDelegate.m index a734e9df9..43566b3c9 100644 --- a/Signal/src/AppDelegate.m +++ b/Signal/src/AppDelegate.m @@ -645,8 +645,7 @@ static NSTimeInterval launchStartedAt; - (void)enableBackgroundRefreshIfNecessary { [AppReadiness runNowOrWhenAppDidBecomeReady:^{ - const NSTimeInterval minimumBackgroundFetchInterval = 5 * 60; // This seems to be the lower bound on what iOS allows - [UIApplication.sharedApplication setMinimumBackgroundFetchInterval:minimumBackgroundFetchInterval]; + [UIApplication.sharedApplication setMinimumBackgroundFetchInterval:UIApplicationBackgroundFetchIntervalMinimum]; // Loki: Original code // ======== // if (OWS2FAManager.sharedManager.is2FAEnabled && [self.tsAccountManager isRegisteredAndReady]) {