var notification = webkitNotifications.createNotification(
'icon.png',
'title',
'text"
);
notification.show();
//cancel it after 5 seconds.
setTimeout(function(){
notification.cancel();
},5000);
Em manifest.json:
"permissions": [
"notifications"
],
"web_accessible_resources": [
"icon.png"
]