Thursday, May 23, 2024
36
rated 0 times [  43] [ 7]  / answers: 1 / hits: 8339  / 10 Years ago, sun, may 25, 2014, 12:00:00

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


More From » google-chrome

 Answers
9

Apparently they removed the need for webkit perfix.



Docs



Demo


[#45054] Friday, May 23, 2014, 10 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
jaliyahcynthiac

Total Points: 91
Total Questions: 94
Total Answers: 119

Location: Vanuatu
Member since Wed, Oct 14, 2020
4 Years ago
;