cancelAllLocalNotifications not working in iOS10 : <p>I want to remove all previous local notification from NotificationCenter  when adding new notifications. But it is working in iOS9.0 and lower version but in iOS 10 it fires multiple local notifications. So it seems like <code>cancelAllLocalNotifications</code> not clearing notifications.</p>

<p>Code compile successfully in iOS10.</p>

<pre><code>UIApplication.shared.cancelAllLocalNotifications()
</code></pre>
