title: Show IconBadgeNumber after push notification while app background or closed (Xamarin.iOS)
body: <p>In my Xamarin.iOS project I use Azure Notification Hub to send push notification to my application.</p>
  
  <p>I can control my IconBadgeNumber with this code in <code>AppDelegate</code> class.</p>
  
  <pre><code> var settings = UIUserNotificationSettings.GetSettingsForTypes(UIUserNotificationType.Badge, null);
    UIApplication.SharedApplication.RegisterUserNotificationSettings(settings);
    UIApplication.SharedApplication.ApplicationIconBadgeNumber = 0;
  </code></pre>
  
  <p>I can count number of my push notification when they come:</p>
  
  <pre><code> public override void ReceivedRemoteNotification(UIApplication application, NSDictionary userInfo)
   {
       ProcessNotification(userInfo, false);
       UIApplication.SharedApplication.ApplicationIconBadgeNumber = UIApplication.SharedApplication.ApplicationIconBadgeNumber + 1; ;
   }
  </code></pre>
  
  <p>But it will work only if my application is opened. How I can count push notifications for IconBadgeNumber when my app is backgrouned or close?</p>