javascript - How to notify in Google Chrome using window.Notification? -


i'm trying display desktop notifications using window.notification object, not it.

this code:

var noti = new notification("bob: hi", { tag: 'chat_bob' }); noti.show(); 

that works on firefox, without noti.show() statement, not in google chrome. doesn't work after user grants permissions.


Comments

Popular posts from this blog

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

php - render data via PDO::FETCH_FUNC vs loop -

The canvas has been tainted by cross-origin data in chrome only -