title: Usernotification framework badge does not increase
body: <p>I am using <code>UserNotification</code> framework in my app and sending local notifications (not push notifications), and I want to set the badge to the number of notifications received so what I did was to set the number of notifications received into a user default then I tried to assign the value to the badge to get me a badge number but the badge number would not increase. This is my code below</p>
  
  <p><strong>To set value of received notification</strong></p>
  
  <pre><code>center.getDeliveredNotifications { notification in
  
      UserDefaults.standard.set(notification.count, forKey: Constants.NOTIFICATION_COUNT)
      print("notification.count \(notification.count)")
      print(".count noti \(UserDefaults.standard.integer(forKey: Constants.NOTIFICATION_COUNT))")
  
  }
  </code></pre>
  
  <p>This accurately prints the number of notification received and when I decided to set it to my badge it only shows 1</p>
  
  <pre><code>content.badge = NSNumber(value: UserDefaults.standard.integer(forKey: Constants.NOTIFICATION_COUNT))
  </code></pre>
  
  <p>I have no idea why the value does not increase every time. Any help would be appreciated.</p>
  
  <p>Or if it is possible to always update the badge anywhere in the app.</p>