Hammerspoon / hammerspoon

Staggeringly powerful macOS desktop automation with Lua

Home Page:http://www.hammerspoon.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

hs.notify.show doesn't work

x-tropy opened this issue · comments

hs.hotkey.bind({ "cmd", "shift", "ctrl" }, "J", function()
  -- hs.notify.new({ title = "Hammerspoon", informativeText = "Hello World" }):send()
  print("Hello World")
  hs.notify.show("title", "subTitle", "information")
end)

The console prints "Hello World", but notification is not generated.
And the commented line also doesn't work.

works for me out of the box

image

are there any errors in Hammerspoon console? Do other notifications work from Hammerspoon? Is Hammerspoon allowed to send/show notifications?

98356

Do you have some "Focus" mode active? Hammerspoon should be included in "Allowed Apps" in this case

44851

Cheers

Thanks!