In this video, we’ll talk about Push.js – A javascript library to send desktop notification. Learn how to setup, create a notification and customize the options of push.js. Full source code available below!
Source Code: https://redstapler.co/push-js-tutorial-javascript-desktop-notification/
Follow us on
Facebook: https://www.facebook.com/theRedStapler
Website: http://redstapler.co/
Twitter: https://twitter.com/redStapler_twit
Original source
31 responses to “Push.js Tutorial | Create Desktop Notification with Javascript”
where is the "push" in all this??? the only thing you do is refreshing a page to receive alerts in a more complicated way that HTML5 can do it…
tengo un problema al ejecutar el codigo, no me permite correr el script ya que en mi proyecto local no tiene certificado ssl y por lo que eh leido me dice que el mensaje push solo corre con https, el detalle esta que en tu local esta igual sin certificado y aun asi se ejecuta el escript
Its working for desktop but not phones browser.
this dosen't work in chrome desktop with windows 10
Thanks a lot
Does not work
thank you!
this library can be used to send notifications to all users of my application?
And the sound ?
Awesome
can you help me my code didnt work 🙁
<!DOCTYPE html>
<html>
<head>
<title>afda</title>
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script src="push.js"></script>
</head>
<body>
<button id="btn">notify</button>
<script>
$("#btn").click(function() {
Push.create("Hello world!");
});
</script>
</body>
</html>
How to send notifications when the user is not interactive with the page i.e like GMail and YouTube sends browser notifications even they are not being currently visited.
How is it possible to do so? How to tell the client's browser to show the notification when he is not active or not viewing the page?
How can I remove the sound from Chrome notifications?
How to add sound when notification received
is that work on mobile browser too ?
do you have the css file?
where can I download that jquery 2.1.4.js?
how do I change the status of my permission from false to true
Can anyone clarify ?! Is there a way to send a notification to all subscribers once they approved notifications ? Or is that a whole different thing ? Because I am guessing that is what most developers want to do.
As it is now it just shows a desktop notification when user is on that page, not much use for that.
How can I check if the user is not in my page, send a notification?
how can i send to multi users a notification?
how can we send notification without a user click
how do I change the status of my permission from false to true
thanks a lot for this tutorial
Does it work for mobile too? Like android and iOS?
how to to pass info from web apivto call push.js create notify method? please share some link
If users close browser works send desktop notification? thanks.
What if i want fetch data from database in push pop-up please reply
Great! Very useful!
Why u sound like jing yang..?
Very nice video