title: iOS10 Background fetch
body: <p>I have tried to implement background fetch, to hopefully can wake the app from time to time. </p>
  
  <p>I have done these:</p>
  
  <pre><code>      func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -&gt; Bool {
  application.setMinimumBackgroundFetchInterval(UIApplicationBackgroundFetchIntervalMinimum)
          return true
        }
  
  func application(_ application: UIApplication, performFetchWithCompletionHandler completionHandler: @escaping (UIBackgroundFetchResult) -&gt; Void) {
      debugPrint("performFetchWithCompletionHandler")
      getData()
      completionHandler(UIBackgroundFetchResult.newData)
    }
  
    func getData(){
      debugPrint("getData")
    }
  </code></pre>
  
  <p>I have also enable background fetch capabilities already. That's all i have done. And then i run the app. the function never called even after an hour (the phone slept). </p>
  
  <p>What other things i have to do to make the function get called? </p>