title: Receiving Newsstand Notifications Only When App Is Running
body: <p>i'm not receiving newsstand notifications when the app is not running, here is what I have done.</p>
  
  <p>The app has the proper plist keys 'UINewsstandApp = YES' and 'UIBackgroundModes = newsstand-content'.</p>
  
  <p>In the app delegate I register for all notification types, and i receive my token from APNS, from the server side ( i am using a gem called Grocer ) i set up the dev certificate and send a regular push and it works.</p>
  
  <p>if i send a newsstand push I receive it if the app is running on 'didReceiveRemoteNotification', but when the app is not running i get nothing in the notification center, which is mainly because 'Grocer' has the following payload 
  {"aps": {"content-available":1}} and can't add any other keys ( alert, badge, etc )</p>
  
  <p>so I thought that I should not get anything in the notification center, I look for the 'UIApplicationLaunchOptionsRemoteNotificationKey' in the launch options, and then write a file to make sure that the app ran in the background, the file is never written as such</p>
  
  <pre><code>NSDictionary *remoteNotif = [launchOptions objectForKey:UIApplicationLaunchOptionsRemoteNotificationKey];
  
  if(remoteNotif)
      {
          NSString *cachePath = [NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES) objectAtIndex:0];
          NSString *filePath = [cachePath stringByAppendingPathExtension:@"pushreceived.txt"];
          [@"testing" writeToFile:filePath atomically:YES encoding:NSASCIIStringEncoding error:nil];
      }
  </code></pre>
  
  <p>I have NKDontThrottleNewsstandContentNotifications set to true in my user defaults, and then I synchronize to make sure.</p>
  
  <p>when the app is running, no matter how many times i send the push, I always get a callback on " didReceiveRemoteNotification ", with the proper "content-available" </p>
  
  <p>if the app is closed or in the background, nothing happens. </p>
  
  <p>Update:</p>
  
  <p>I managed to change the gem that sends the notification payload, here is the dictionary it sends </p>
  
  <pre><code>{"aps"=&gt;
     {
       "alert"=&gt;"Hello iPhone!!",
       "content-available"=&gt;1,
       "badge"=&gt;1,
       "sound"=&gt;"default"
     }
  }
  </code></pre>
  
  <p>and here the userinfo dictionary I receive on my app ( while running ) </p>
  
  <pre><code>{
      aps =     {
          alert = "Hello iPhone!!";
          badge = 1;
          "content-available" = 1;
          sound = default;
      };
  }
  </code></pre>
  
  <p>please note the quotation marks around content-available, does this mean that APNS parsed it as a custom key ?</p>