Starting with iOS 7, Apple\'s Multitasking APIs allow apps to run in three new Background Modes: Background fetch, Remote notification content, and Background transfer servi
Updated for Swift 3 and iOS10:
switch UIApplication.shared.backgroundRefreshStatus { case .available: print("Refresh available") case .denied: print("Refresh denied") case .restricted: print("Refresh restricted") }