title: Push notification applicationIconBadgeNumber is not update in ios7
body: <p>I am using following code in app delegate to receive Remote notification but its applicationIconBadgeNumber (appear on app icon's top left corner in red/white) is not updating when app in background. when push notification received its appear in top corner of screen with slide animation , in notification payload Badge count is comming form server side perfectly.</p>
  
  <p>In <code>didFinishLaunchingWithOptions</code> I have put following code</p>
  
  <pre><code>[application registerForRemoteNotificationTypes:(UIRemoteNotificationTypeAlert | UIRemoteNotificationTypeBadge | UIRemoteNotificationTypeSound)];
  </code></pre>
  
  <p>Delegates for Remote notification : </p>
  
  <pre><code>- (void)application:(UIApplication *)app didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken {
      NSString *deviceTokenTrimmed = [[[[deviceToken description]
                                        stringByReplacingOccurrencesOfString:@"&lt;"withString:@""]
                                       stringByReplacingOccurrencesOfString:@"&gt;" withString:@""]
                                      stringByReplacingOccurrencesOfString: @" " withString: @""];
      currentdeviceToken=deviceTokenTrimmed;
      [[NSUserDefaults standardUserDefaults] setValue:deviceTokenTrimmed forKey:@"pushtoken"];
      NSLog(@"Device Token didRegisterForRemoteNotificationsWithDeviceToken :  %@",deviceTokenTrimmed);
  
  }
  
  - (void)application:(UIApplication *)application didFailToRegisterForRemoteNotificationsWithError:(NSError *)error {
      NSLog(@"Device Token in FailToRegister RemoteNotifications ERROR %@",error);
  }
  
  - (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo {
      NSLog(@"%@",userInfo);
      if (application.applicationState == UIApplicationStateActive)
      {
          /***********code to show alert********/
          if (![[[NSString alloc]initWithString:[[userInfo objectForKey:@"aps"] objectForKey: @"alert"]] isEqualToString:@""] &amp;&amp; [[NSString alloc]initWithString:[[userInfo objectForKey:@"aps"] objectForKey: @"alert"]]!=nil) {
              NSString *MSG =[[NSString alloc]initWithString:[[userInfo objectForKey:@"aps"] objectForKey: @"alert"]];
              UIAlertView *alert = [[UIAlertView alloc]initWithTitle:@"Message" message:MSG delegate:nil cancelButtonTitle:@"Okay" otherButtonTitles:nil, nil];
              [alert show];
          }else{
              UIAlertView *alert = [[UIAlertView alloc]initWithTitle:@"Message" message:@"Notification Received." delegate:nil cancelButtonTitle:@"Okay" otherButtonTitles:nil, nil];
              [alert show];
          }
      }else{
        application.applicationIconBadgeNumber =[[[userInfo objectForKey:@"aps"] objectForKey: @"badge"]integerValue];
      }
  
  }
  </code></pre>
  
  <p>Thanks in advance.</p>