Is there an hosted example code (Javascript) that demonstrates Chrome desktop notifications? I'd like that use that in my own code.
Update: Here's a blog post explaining webkit notifications with an example.
Is there an hosted example code (Javascript) that demonstrates Chrome desktop notifications? I'd like that use that in my own code.
Update: Here's a blog post explaining webkit notifications with an example.
Check the design and API specification (it's still a draft) or check the source from this webpage for a simple example: It's mainly a call to window.webkitNotifications.createNotification
.
If you want a more robust example (you're trying to create your own Google Chrome's extension, and would like to know how to deal with permissions, local storage and such), check it out Gmail Notifier Extension: download the crx file instead of installing it, unzip it and read it's source code.