|
|
@ -645,8 +645,7 @@ static NSTimeInterval launchStartedAt;
|
|
|
|
- (void)enableBackgroundRefreshIfNecessary
|
|
|
|
- (void)enableBackgroundRefreshIfNecessary
|
|
|
|
{
|
|
|
|
{
|
|
|
|
[AppReadiness runNowOrWhenAppDidBecomeReady:^{
|
|
|
|
[AppReadiness runNowOrWhenAppDidBecomeReady:^{
|
|
|
|
const NSTimeInterval minimumBackgroundFetchInterval = 5 * 60; // This seems to be the lower bound on what iOS allows
|
|
|
|
[UIApplication.sharedApplication setMinimumBackgroundFetchInterval:UIApplicationBackgroundFetchIntervalMinimum];
|
|
|
|
[UIApplication.sharedApplication setMinimumBackgroundFetchInterval:minimumBackgroundFetchInterval];
|
|
|
|
|
|
|
|
// Loki: Original code
|
|
|
|
// Loki: Original code
|
|
|
|
// ========
|
|
|
|
// ========
|
|
|
|
// if (OWS2FAManager.sharedManager.is2FAEnabled && [self.tsAccountManager isRegisteredAndReady]) {
|
|
|
|
// if (OWS2FAManager.sharedManager.is2FAEnabled && [self.tsAccountManager isRegisteredAndReady]) {
|
|
|
|