title: iOS: Push notifications work only if the app run in foreground
body: <p>I have 2 iPhones and I'm testing Apple push notifications.</p>
  
  <p>They perfectly work when my app is running in foreground on both devices. But if I close it, by clicking on the Home button, I don't receive the notifications anymore.</p>
  
  <p>The system doesn't show the notification popup. And I think this doesn't depend on my app code...</p>
  
  <p>So far I've implemented </p>
  
  <pre><code>- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo
  </code></pre>
  
  <p>and it works great when the app is in foreground.
  I've also implemented:</p>
  
  <pre><code>- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
  </code></pre>
  
  <p>but the launchOptions never contain the notification. However, this is correct, I guess, because the last method is invoked when I select a button of a notification alert that I never see...</p>
  
  <p>thanks</p>