Background fetch performFetchWithCompletionHandler not working?
问题 My app want to update server about users location after every 5 seconds even if app is in background. I implemented Background fetch for it. func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { application.registerUserNotificationSettings(UIUserNotificationSettings(forTypes: [.Alert, .Badge, .Sound], categories: nil)) application.setMinimumBackgroundFetchInterval(5.0) return true } func application(application: