Skip to content

Commit

Permalink
Removes background fetch stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
kinoroy committed Nov 14, 2017
1 parent b3438e4 commit 10d6372
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
Expand Up @@ -26,6 +26,7 @@
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
language = ""
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
</Testables>
Expand All @@ -45,6 +46,7 @@
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
language = ""
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
Expand Down
2 changes: 2 additions & 0 deletions RenewPass.xcodeproj/xcshareddata/xcschemes/RenewPass.xcscheme
Expand Up @@ -26,6 +26,7 @@
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
language = ""
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
</Testables>
Expand All @@ -45,6 +46,7 @@
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
language = ""
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
Expand Down
Expand Up @@ -26,6 +26,7 @@
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
language = ""
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
</Testables>
Expand All @@ -45,6 +46,7 @@
buildConfiguration = "Release"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
language = ""
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
Expand Down
8 changes: 2 additions & 6 deletions RenewPass/AppDelegate.swift
Expand Up @@ -27,10 +27,6 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
Fabric.sharedSDK().debug = true
#endif
Fabric.with([Crashlytics.self])

// Set the background task interval to be 2 weeks/1210000 secconds
let minimumBackgroundFetchInterval:TimeInterval = TimeInterval(exactly: 1210000.00)!
UIApplication.shared.setMinimumBackgroundFetchInterval(minimumBackgroundFetchInterval)

// Check version with Siren
//let siren = Siren.sharedInstance
Expand Down Expand Up @@ -127,7 +123,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
}
}

func application(_ application: UIApplication, performFetchWithCompletionHandler completionHandler: @escaping (UIBackgroundFetchResult) -> Void) {
/*func application(_ application: UIApplication, performFetchWithCompletionHandler completionHandler: @escaping (UIBackgroundFetchResult) -> Void) {
os_log("Performing a background fetch", log: .default, type: .debug)
RenewService.didStartFetchFromBackground = true
if let navigationViewController = self.window?.rootViewController as! UINavigationController? {
Expand Down Expand Up @@ -169,6 +165,6 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
Crashlytics.sharedInstance().recordError(RenewPassError.unknownError)
completionHandler(UIBackgroundFetchResult.failed)
}
}
}*/
}

4 changes: 1 addition & 3 deletions RenewPass/Info.plist
Expand Up @@ -44,9 +44,7 @@
<true/>
</dict>
<key>UIBackgroundModes</key>
<array>
<string>fetch</string>
</array>
<array/>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
<key>UIMainStoryboardFile</key>
Expand Down

0 comments on commit 10d6372

Please sign in to comment.