1
Does anyone know or ever used this Chrome notification and knows how it works?
because when I try to use webKitNotifications.createHTMLNotification()
he of error ReferenceError: webKitNotifications is not defined
someone can help me?
1
Does anyone know or ever used this Chrome notification and knows how it works?
because when I try to use webKitNotifications.createHTMLNotification()
he of error ReferenceError: webKitNotifications is not defined
someone can help me?
3
You’re writing it wrong:
window.webkitNotifications // correto: letra 'k' minúscula
window.webKitNotifications // errado (letra 'k' maiúscula está errada)
The official API name is Notifications
, and in firefox can already be used with that name, so:
window.Notifications
Example of use:
Reference:
Html5rocks: http://www.html5rocks.com/en/tutorials/notifications/quick/? redirect_from_locale=en
MDN: https://developer.mozilla.org/en-US/docs/Web/API/notification
that’s right, thanks for the help..
Here’s a practical example notifying.
Browser other questions tagged javascript google-chrome notifying
You are not signed in. Login or sign up in order to post.
+1 for the issue about the notification API... although the error is occurring because of a simple typo! This API is very f@)@!
– Miguel Angelo
@Miguelangelo is that pity that it doesn’t work on all browsers
– Silvio Andorinha
In addition to not working at all, Chrome and firefox differ in implementation, all the more. But there is hope! = D
– Miguel Angelo