I have two Swift macOS apps with running from XCode which are simple listener-notifier programs based on DistributedNotificationCenter
. It all seems straightforward, but it is not always working. And it seems pretty random for me. Is there any way to debug this feature? Why sometimes messages is not received or are there maybe some leak of the listener ports?
Do you know maybe any tool? I tried to use console logs but I haven't found anything interesting there.
Thanks!
Ps. I've noticed that notification is sent when I went machine to Sleep and the Login again. Strange