From 3490f8a34fe4767f79600c6c9ea4e681d94fe5ce Mon Sep 17 00:00:00 2001 From: gmbnt Date: Tue, 7 Apr 2020 11:24:47 +1000 Subject: [PATCH] Use either APNs or background polling but not both --- Signal/src/AppDelegate.m | 1 + 1 file changed, 1 insertion(+) diff --git a/Signal/src/AppDelegate.m b/Signal/src/AppDelegate.m index 40eb01790..312da5e39 100644 --- a/Signal/src/AppDelegate.m +++ b/Signal/src/AppDelegate.m @@ -709,6 +709,7 @@ static BOOL isUsingFullAPNs = YES; - (void)enableBackgroundRefreshIfNecessary { + if (isUsingFullAPNs) { return; } [AppReadiness runNowOrWhenAppDidBecomeReady:^{ [UIApplication.sharedApplication setMinimumBackgroundFetchInterval:UIApplicationBackgroundFetchIntervalMinimum]; // Loki: Original code