Open Steffan-Ravn opened 3 years ago
For me it "hangs" (no dialog or notification appears), even without -sender, and nothing shows up in Console...hmm... update: appears my issue was https://github.com/vjeantet/alerter/issues/26#issuecomment-910565162
Since macos 10.14, Apple has introduced the "User Notifications" framework to deprecate the NSUserNotificationCenter
class and the NSUserNotification
class from Foundation framework. It appears that Outlook and Dropbox have already transitioned to the new framework, thus have registered themselves as "modern client" in the notification center. However, alerter
is still using the old framework, which is considered a "legacy client", and will be denied when the -sender
is already registered as a "modern client". The reason it still works for TextEdit is that normally TextEdit does not register itself in the Notification center.
I have a problem similar to #27 On Mojave everything is working as expected, but on Big Sur some notifications just hang when I'm using the
-sender
parameter. If I send ascom.apple.TextEdit
, it just works, but when I'm trying withcom.microsoft.Outlook
it just hangs and never gets anywhere.Example:
alerter -message "Hi there" -title "This is awesome" -sender "com.microsoft.outlook"
This is on Big Sur 11.2.1, with Outlook 16.46 and I've tried both the precompiled version of alerter, an earlier version of alerter and I even downloaded the project and compiled it myself. Still no luck.
I can see in the Console.app that when it hangs, the NotificationCenter never gets the call, instead I see messages of this nature:
Let me know if you need more information or if I should try something else.