Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notification are always dismissed, even with MacOS setting for Alerts #407

Open
k-funk opened this issue Apr 16, 2022 · 2 comments
Open

Comments

@k-funk
Copy link

k-funk commented Apr 16, 2022

OS: MacOS 12.3.1
Node: v17.7.1

Is there a setting to make the notification persist? My notification always appear as "Banners" even though I've selected "Alerts" in the OS settings:
Screen Shot 2022-04-16 at 14 34 34

    notifier.notify({
      title: message,
      message: JSON.stringify(data),
      sound: true,
    })

Similarly, but possibly unrelated: The notifications don't show up in my Mac's Notification Center, the way my WhatsApp, Slack, etc messages do.

@k-funk k-funk changed the title Notification Dismisses, Always Notification are always dismissed, even with MacOS setting for Alerts Apr 16, 2022
@clementduncan
Copy link

Try adding a 'timeout' value. When Notification Centre is on 'Banners', the 'timeout' is ignore, but used when it's set to 'Alerts'

notifier.notify({
  title: message,
  message: JSON.stringify(data),
  sound: true,
  timeout: 30
})

@k-funk
Copy link
Author

k-funk commented Aug 13, 2022

Looks like that hack works. I'll just add

notifier.notify({
  ...
  timeout: 99999999999,
})

when i want it to stay up until dismissed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants