How to reset the Badge app icon number?
问题 I integrated the Push Notification to the CloudKit so that every change in the iCloud will pop up a notification on my iPhone and the badge app icon number will add one correspondingly. However, when I used the code: application.applicationIconBadgeNumber = 0 to reset that number in the applicationDidBecomeActive(_ application: UIApplication) , I noticed that the badge app icon number truly disappeared but if another new notification came again, the number won't start from one again as