title: Parse.com push notification badge value
body: <p>I use <a href="http://www.parse.com" rel="nofollow">parse.com</a> and the <a href="http://www.parse.com/apps/quickstart" rel="nofollow">iOS Parse Framework</a> in an iOS app. I want to send a push notification to a channel, but I would like the value of the badge to be set to <code>1</code>, even if the user receives multiple notifications.</p>
  
  <p>Here is the code used to send the notification, taken from the documentation :</p>
  
  <pre><code>NSDictionary *data = [NSDictionary dictionaryWithObjectsAndKeys:
      @"Here is the content of the notification !", @"alert",
      @"Increment", @"badge",
      @"cheering.caf", @"sound",
      nil];
  PFPush *push = [[PFPush alloc] init];
  [push setChannels:[NSArray arrayWithObjects:@"A Channel", nil]];
  [push setData:data];
  [push sendPushInBackground];
  </code></pre>
  
  <p>Here is <a href="http://www.parse.com/docs/push_guide#options-data/iOS" rel="nofollow">what they say</a> (go to "Sending options" > "Customizing your notifications") about the value of the <code>badge</code> key in the dictionary :</p>
  
  <blockquote>
    <p><strong>badge:</strong> <em>(iOS only)</em> the value indicated in the top right corner of the app icon. <strong>This can be set to a value</strong> or to Increment in order to increment the current value by 1.</p>
  </blockquote>
  
  <p>So obviously, the value <code>@"Increment"</code> works fine, but I want to always set the badge value to "<code>1</code>".</p>
  
  <p>What is the correct syntax ? I can't seem to find it !</p>