johnlindquist / kit

Script Kit. Automate Anything.
https://scriptkit.com
MIT License
3.91k stars 138 forks source link

Notifications in dnd mode don't show up #1175

Closed phifa closed 1 year ago

phifa commented 1 year ago

When dnd mode on Mac OS is off, notifications work perfectly. When dnd mode is enabled and the kit app is added to allowed apps in the OS focus settings, the notifications still do not show up. I tested it with this script:

// Name: Stand Up and Stretch
// Schedule: */15 * * * *

import "@johnlindquist/kit"

notify(`Stand up and stretch`)

The notifications get collected in the sidebar, but do not appear on screen.

johnlindquist commented 1 year ago

I don't understand. Are you expecting notifications to appear while dnd is on? I thought dnd disabled notifications from all apps so if you're sharing your screen, etc, no one can see potentially private info

phifa commented 1 year ago
Screenshot 2023-03-23 at 15 16 59 Screenshot 2023-03-23 at 15 13 56

@johnlindquist if you go to focus settings on mac os, you can see 'allowed apps'. I put kit in there. With other apps this works.

johnlindquist commented 1 year ago

Oh, interesting. I wasn't aware that setting. Can you try adding "terminal-notifier" to that.

The Script Kit app forwards notifications to "node-notifier": https://www.npmjs.com/package/node-notifier which is a separate app called "terminal-notifier":

CleanShot 2023-03-23 at 10 32 08

phifa commented 1 year ago

ah that was it! seems to work, thanks John! 🚀