StopShortcutsNotifications icon indicating copy to clipboard operation
StopShortcutsNotifications copied to clipboard

Not all shortcut notifications are blocked

Open lonkelle opened this issue 3 years ago • 30 comments

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:

  1. 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.

  2. 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())

lonkelle avatar Mar 20 '21 10:03 lonkelle