Not all shortcut notifications are blocked
Opened this issue · 0 comments
lonkelle commented
There are two ways to block shortcut notifications.
You hooked into Notifications in real-time to stop them. It seems to miss the "completed" shortcut notifications since they display a bit differently.
So, two options:
-
Make your hook account for this (easiest way to test this is to make a shortcut and set it up with back tap and then back tap to test removing the notifications.
-
Use the UserNotifications private framework and patch that off. This works to remove all notifications rather than just the "Show Notification" shortcut action being hidden (what your plugin does).
assert(Bundle(path: "/System/Library/PrivateFrameworks/UserNotificationsSettings.framework")!.load())