title: iOS7 Background Fetch
body: <p>I am trying to implement the new iOS7 app refresh. I don't think it's working properly.</p>
  
  <p>I add into the <code>info.plist</code></p>
  
  <p>Required background modes - App downloads content from the network</p>
  
  <p>In my main view controller, </p>
  
  <ol>
  <li><code>UIApplicationDelegate</code> is set as delegate</li>
  <li><p>In <code>Viewdidload</code> I put in <code>[[UIApplication sharedApplication] setMinimumBackgroundFetchInterval:1.0];</code></p></li>
  <li><p>I add the following method             </p>
  
  <pre><code>- (void)application:(UIApplication *)application 
      performFetchWithCompletionHandler: 
      (void (^)(UIBackgroundFetchResult result))completionHandler {
          NSLog(@"Refresh from Background");
  }
  </code></pre></li>
  </ol>
  
  <p><br>I plug in my iPhone and launch the app and then I got to Debug -> Simulate Background Fetch</p>
  
  <p>The NSLog does not print. (If my app is in the foreground, it will put it in the background)</p>
  
  <p>Thanks!</p>