title: Receiving Notifications with App in background mode
body: <p>I have an app, that will keep track of everything the user do in the iPod app. To do this, I added few observers to NSNotificationCenter, like  MPMusicPlayerControllerNowPlayingItemDidChangeNotification. But my problem is, I only get those notifications when my app is in the foreground, if its in the background, the system add the notification to a queue, and then the next time my app becomes active it delivers it to me. I have no interest in this queue, since I want to receive real-time notifications.</p>
  
  <p>Is there any way for me to get those notifications even if my app is in suspended state? I want to run just 3 lines of code everytime I get this NowPlayingItemDidChange notifications for example.</p>
  
  <p>Here is where I add the observer.</p>
  
  <pre><code>MPMusicPlayerController *iPodMediaPlayer = [MPMusicPlayerController iPodMusicPlayer];
  
  
  
  NSNotificationCenter *notificationCenter = [NSNotificationCenter defaultCenter];
  
       [notificationCenter addObserver: self selector: @selector(handle_NowPlayingItemChanged:) name:MPMusicPlayerControllerNowPlayingItemDidChangeNotification
  
                                      object:iPodMediaPlayer];
  
  
   [iPodMediaPlayer beginGeneratingPlaybackNotifications];
  </code></pre>
  
  <p>Also, if I add another kind of object to the observer instead of iPodMediaPlayer, the observer won't call the method.</p>
  
  <p>Thanks a lot,</p>
  
  <p>Abras</p>