CWStatusBarNotification icon indicating copy to clipboard operation
CWStatusBarNotification copied to clipboard

When use 2 notification, second doesn't apear..

Open mirzadelic opened this issue 8 years ago • 2 comments

When i use notification, then POST json request, then again notification, the second one doesn't apear..

mirzadelic avatar Jul 06 '15 02:07 mirzadelic

i ran into the same problem. i solved it for my case by setting the notification with self.notification.displayNotificationWithMessage("1st status text...", completion: nil) then resetting the text using self.notification.notificationLabel.text = "2nd status text" then calling the dismisser using performClosureAfterDelay(1.0, { self.notification.dismissNotification() })

not even remotely elegant. but it did satisfy my requirements of displaying a followup status once my REST call finished.

jasonwiener avatar Jul 11 '15 01:07 jasonwiener

Queuing notifications is currently not supported, so if a notification is currently showing and you want to display another one, nothing will happen. You can check the notificationIsShowing property to see if the notification is currently being shown.

I don't have plans to implement queuing in the near future, but feel free to submit a PR if you want to have a go at it.

cezarywojcik avatar Jul 11 '15 21:07 cezarywojcik