d7laungani / DLLocalNotifications

:speech_balloon: Easily create Local Notifications in swift - Wrapper of UserNotifications Framework
MIT License
214 stars 38 forks source link

Cannot delete notification with identifier #14

Closed megataps closed 5 years ago

d7laungani commented 5 years ago

You can now delete a notification scheduler.cancelNotification(notification: notification). If you don't have the original notification just create a dummy notification with your identifier. E.g.

let notification = DLNotification(identifier: <YOUR IDENTIFIER>, alertTitle: "", alertBody: "", date: Date(), repeats: .minute)

 scheduler.cancelNotification(notification: notification)