title: When my app is in background, push notifications are handled only if I touch the top notification banner
body: <p>I've implemented</p>
  
  <pre><code>application:didReceiveRemoteNotification:
  </code></pre>
  
  <p>to store data in my app when a push notification is received.</p>
  
  <p>However when my app is in background and I receive a notification, the data is stored only if I touch the notification banner appearing on top:</p>
  
  <p><img src="https://i.stack.imgur.com/nYODr.png" alt="enter image description here"></p>
  
  <p>Instead, if I touch the app icon to reopen it, the content of the notification is not stored:</p>
  
  <p><img src="https://i.stack.imgur.com/9xyf7.jpg" alt="enter image description here"></p>
  
  <p>Since I'm receiving the notifications only when I use the distribution profile, I'm not sure if <code>application:didReceiveRemoteNotification:</code> is invoked only when I push the notification banner on top.</p>
  
  <p>I thought it is always invoked at the time a notification is received, and not after a user action on the device.</p>
  
  <p><strong>UPDATE</strong>.
  I don't know if this can help but, just to let you know, I haven't implemented any of these methods:</p>
  
  <pre><code>– applicationDidEnterBackground:
  – applicationWillEnterForeground:
  - applicationDidBecomeActive:
  </code></pre>