CWStatusBarNotification
CWStatusBarNotification copied to clipboard
When use 2 notification, second doesn't apear..
When i use notification, then POST json request, then again notification, the second one doesn't apear..
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.
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.