I do not know if this was not possible, but now you can cancel the notification from the lock screen. If someone needs it now.
If you are sending a notification, you must keep it somewhere in order to be able to identify it when it should be canceled.
All you have to do is
UIApplication.sharedApplication().cancelLocalNotification(notification)
to identify a notification that should be canceled, you can set the information in the userinfo property
notification.userInfo = ["title": item.title, "UUID": item.UUID]
source
share