0

I would like to show a message that basically looks like the "toast" of Outlook (or a Growl notication on OS X). I want to show that message from a node-webkit application in a way that works on OS X, Linux and Windows without any changes (if this does not work, you may skip Linux).

How could I do this?

So far I have seen that I could use node-growl, but the setup for the various operating systems is a little bit, well, clumsy.

Is there a better approach?

Golo Roden
  • 140,679
  • 96
  • 298
  • 425

1 Answers1

1

Its pretty bleeding edge so support is spotty in older browsers, but you could try doing something with the new(ish) notifications API

var notification = new Notification(title, options)

I'm no expert on the subject, but if you find the MDN documentation less than helpful, you could try out this tutorial.

And finally, if you'd like a javascript library to abstract this for you: Notify.js

Jordan Foreman
  • 3,848
  • 7
  • 40
  • 65