Sometimes NSUserNotificationCenter -deliveredNotifications method call freezes for a long time, so now we use it only in a separate thread and we group all the requests for clearing while another clearing is done.