В этом видео мы создадим возможность push-уведомлений с помощью Node.js без каких-либо сторонних сервисов. Мы добьемся этого, используя web-push, push/notifications API и сервис-воркеров. Код:
? Станьте покровителем: окажите поддержку и получите бонусы!
Подписывайтесь на Traversy Media:
source
According to researches by the adsmember team
Edge 17 (in the april windows 10 update) has service workers. In Edge 16, workers are installed by enabling the 'Enable Services Workers' flag.
very nice and simple frame for web push worker. Thanks a lot – I'm going to repeat on my project)
Another gem from traversy. On an abstruse subject made simple
Do this work with mobile apps even when the app is not running?
How does this make any sense? Who would send a push notification from the client to the same client? You should have shown a different server or different client sending the push and the other receiving…
Nice tutorial, will be great if you can explain me how can i make this with user segmentation. For example i want to send a message to all the user that have to send required documents
This is really simple and cool, thanks a lot! One question thjough: I tried to modify the code to get notifications every 5 seconds by putting the webpush inside a setInterval… But the browser gets only one notification only. Would that even be possible?
thank you very much I've been looking for this for a very long time
DOMException: Registration failed – no Service Worker, Getting this Error, while creating subscription object, anyone help me please
Thanks! This is just what I was looking for. Nicely explained.
Great, as usual…..Sir Brad Traversy…
You really did it..?,
Kindly update how can i send dynamic data in push notifications, in other server react js build? please me
So, if my backend consumes some APIs, then I need to poll them from time to time and send a notification to the client, based on the response, right? This makes me think I cannot have anything like that on a service like heroku which starts your backend when somebody visits it. Is it so? ?
Nothing happened!
Hey worked fine in asking permission but in notifying part this is giving me an error that "I must pass in a subscription with at least an endpoint" how to fix it
Great video! Thanks
Push notification recived only if you refresh browser, how to achive without browser refresh?
Thanks a lot!!!
please please webrtc thankssss
Sir I am Getting Error: Reference Error:navigator is not defined.
Thanks Traversy Media, I will be using it in my MERN app
Nice tutorial. But does it require the user to have the web page active to see this?? Can we do it when the user is not even in the browser?? Thanks
THANK YOU!!!!