Clear applicationIconBadgeNumber without removing notifications not working
<p>I've read in a few posts (like this one <a href="https://forums.developer.apple.com/thread/7598" rel="noreferrer">https://forums.developer.apple.com/thread/7598</a>) that setting </p>

<pre><code>    application.applicationIconBadgeNumber = -1
</code></pre>

<p>on <code>applicationDidBecomeActive</code> or <code>applicationWillEnterForeground</code> would allow me to clear the badge number without removing the notifications from the notification center. When I set <code>application.applicationIconBadgeNumber</code> to a negative number (like -1) it clears all my notifications from the <code>Notification Center</code>. Is there another way to clear the badge number without removing the <code>notifications</code>?</p>