2016-12-03 1 views

Répondre

3

Avec

UIApplication.shared.cancelAllLocalNotifications() 

Essayez aussi cette

UIApplication.shared.applicationIconBadgeNumber = 0 

Je pense qu'il va supprimer toutes les notifications de votre panneau central de notification. Essayez ça.

Comme UIApplication.shared.cancelAllLocalNotifications() annule uniquement la remise de toutes les notifications locales planifiées et ne supprime pas la notification.