I'm having a problem getting Background fetch to work. See my code below. I added fetch as background mode in info.plist. I simulate the fetch using Debug -> Simulate background fetch. Nothing is output in the console log. I couldn't find any good examples of this in swift. Does anyone know how to get this working?
func application(application: UIApplication!, performFetchWithCompletionHandler
completionHandler: ((UIBackgroundFetchResult) -> Void)!) {
println("Background fetch occured!");
completionHandler(UIBackgroundFetchResult.NewData)
}