title: iOS Local Notification - Callback when in Background
body: <p>Context:
  My iOS App uses local notifications
  I schedule local notifications and then I get a call back via <em>didRecieveLocalNotifications</em> when the notifications fire.  </p>
  
  <p>This works fine when the app is in <strong>foreground</strong> however when the App goes in the <strong>background</strong> I get the iOS notification <strong>but no call back</strong>.  </p>
  
  <p>My Question:
  How can I get a callback from iOS when the app is in background.</p>
  
  <p>Here is the call back code - </p>
  
  <pre><code>- (void)application:(UIApplication *)application didReceiveLocalNotification:    (UILocalNotification *)notification
  {
  
      //call your method that you want to do something in your app
      NSLog (@"Received Notification");
      [UIApplication sharedApplication].applicationIconBadgeNumber = 1;
      [myRootController HandleLocalNotifications:notification];
  
  }
  </code></pre>