Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

window.webkitNotifications.createNotification - Error

I'm trying to show notification in chrome using this code:

var notification = window.webkitNotifications.createNotification(..params);

But I get this message:

Uncaught TypeError: Cannot read property 'createNotification' of undefined.

This code worked for me last week, but I'm afraid that after the latest update of Chrome is no longer working. I tried to look for maybe a new API but could not find

like image 542
Mosh Feu Avatar asked Oct 15 '25 16:10

Mosh Feu


1 Answers

Apparently they removed the need for webkit perfix.

Docs

Demo

like image 69
Mosh Feu Avatar answered Oct 18 '25 04:10

Mosh Feu



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!