Send push notification using javaScript and PHP

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

One of the best instructional videos, and I've watched 1000s. Easy to follow and understand! Keep up the great work!!!

twoxim
Автор

Thanks a lot! I've seen many tutorials but yours is the first one that really works and I manage to understand... Thank you very much again!!

cosmee.santiestebantoca
Автор

I tried so many guides for how to do this and yours worked... the first time! Thank you so much for the video and for the source code. Thank you!

nicholasosinski
Автор

This is great! Working like a charm! Thank you.

MikeGerritsen-sm
Автор

ok, the reason navigator is undefined is because notification works only with SSL environment - author didn't mention that at all and because he is using localhost it's even more confusing because you cannot setup https on localhost - certbot will complain as this is not a domain.

sebaszwarc
Автор

Thanks for this Ben - I've found it extremely helpful 🙏

jimpannell
Автор

Great video. For some reason, the notification "icon" is not showing up along with the notification. I have added it as a part of the payload but have had no luck. Any idea?

smitshah
Автор

Like watching Bob Ross for coding. Excellent!

andrejhohnjec
Автор

i'v successed implement your code in plain php, but when i use codeigniter 3, why i cant get the endpoint in the console.log ? its just blank, not error, just blank. Like something block this code "then((subscription)" in the codeigniter view, Can you help me ?

wildanshalahuddin
Автор

7:03 I cliked push button. but it is not showing popup. Why?

iloveyou-kdlf
Автор

😂 push notif. The laziness to type out full words gets me too 😂😂

RuebenTijani
Автор

Thanks! Which is better to use, this method or firebase?

nicolaskeratry
Автор

I can get this working on desktop browsers, but the subscription data is not being generated on iOS for me to save... help please?

GiaMisseri
Автор

is that ok to use only the first part of the video where you not using a library

LeguizChristianA.IT-WEBAPPDE
Автор

Thanks for the tutorial!
I'm stuck in getting the end point after creating the "enableNotif" button. The promise isn't resolved.
Up until that point we only used the backend to create public & private keys which we pasted (only the public) in "applicationServerKey" right?

oriamergi
Автор

Mention : If you're using the localhost you can't able to subscribe the client because the API support only https request, since localhost runs in http it will not wok

Coder-jp
Автор

Hi Ben, after successfully testing everything locally (Mac, MAMP and domain localhost) I tried to test the push notification using an aws ec2 instance and a domain with ssl certificates, but the push notification doesn't arrive...
Printing the notification response looks ok, so it's not clear what's stopping the notification from arriving. I have tried with Chrome, Safari and Firefox. My server side stack is ubuntu 22 / apache2 / php 8.1. Do you have any idea? Thanks

fonnets
Автор

Hi, the tutorial is very clear and complete! I managed to replicate the example and everything works. However I don't understand how to manage subscriptions, because to send a notification I have to insert the json of the subscription into the function. This example works with only one browser but if I have to send notifications to multiple browsers do I have to keep all subscriptions and send each one? Thank you

fonnets
Автор

This is so good. Thank you.

I'd like to ask, the notification will only work while the browser is opened yes? Is there a workaround for sending notifications while the browser is closed?

pingxtratech
Автор

Hi Beni, assuming I host my PHP app on Digital Ocean or a Shared Server, can the push notifications still work. Thank you

sampahemmanuel
welcome to shbcf.ru