title: Get custom payload of push notification while app is running background
body: <p>Hey can anybody tell how to get custom payload of push notification when app is in background?</p>
  
  <p>If your app is in the background and you receive a push notification and the user taps app "View", the application is launched and <code>application:didFinishLaunchingWithOptions:</code> would get called. In this case we can access custom notification payload via  <code>UIApplicationLaunchOptionsRemoteNotificationKey</code> from <code>userInfo</code> dictionary.</p>
  
  <p>If your app is in the background and you receive a push notification and the user taps app icon, it brings the application to the foreground.</p>
  
  <p>When that happens, only <code>applicationDidEnterForeground:</code> is called, and there is no way to access the payload of the push notification.</p>
  
  <p>My requirement is to register for Badge only, no alert so no 'View' button to launch app when user receives notification in background. When user receives notification and application is in background, user taps app icon <code>applicationDidEnterForeground:</code> is called. So we have no way to access <code>launchOptions</code> dictionary or <code>userInfo</code> dictionary from where we can get notification payload.</p>
  
  <p>Am I missing something here?</p>