Chrome Rich Notifications in normal web pages? -


i found documentation chrome apps rich notifications.
possible (after getting right permissions) use these notifications in regular web page?
if not, there other type of desktop notification possible in chrome?
maybe gmail has been doing long time?

so need this?

try it!

<script> function notify() {   var havepermission = window.webkitnotifications.checkpermission();   if (havepermission == 0) {     // 0 permission_allowed     var notification = window.webkitnotifications.createnotification(       'http://test.didacticmedia.ro/img/didactic.png',       'notification test!',     'details text'     );      notification.onclick = function () {       window.open("http://stackoverflow.com/questions/18414462/chrome-rich-notifications-in-normal-web-pages/19031405#19031405");       notification.close();     }     notification.show();   } else {       window.webkitnotifications.requestpermission();   } }   </script>  <div style="width: 100px; height: 100px; background: red" onclick="notify()"> click here! </div> 

Comments

Popular posts from this blog

java - Run a .jar on Heroku -

java - Jtable duplicate Rows -

validation - How to pass paramaters like unix into windows batch file -