title: iOS app notification badge count not resetting to 0
body: <p>We're trying to clear the push-notification badge count when the app <em>becomes active</em>, however after successfully clearing, the next notification doesn't give a badge count of 1. Instead, we see what seems to be the total notification count.</p>
  
  <p>So for example we receive 3 notifications - and see the <strong>3</strong> badge, launch the app &amp; hit home again, and the badge has gone. Next time we receive a notification it's not the expected <strong>1</strong>, it's <strong>4</strong>.</p>
  
  <p>This is the code in our <code>AppDelegate.m</code>, inside <code>@implementation AppDelegate</code>:</p>
  
  <pre><code>- (void)applicationDidBecomeActive:(UIApplication *)application {
      application.applicationIconBadgeNumber = 0;
  }
  </code></pre>