Sending Push Notifications with Laravel

  Рет қаралды 11,505

benixal

benixal

Күн бұрын

Пікірлер: 26
@MaycolRuiz_xD
@MaycolRuiz_xD Ай бұрын
This video worths gold
@benixal
@benixal Ай бұрын
Thanks a lot! Really appreciate it.
@PaoloOrsato
@PaoloOrsato 9 ай бұрын
Hidden gem! Thank you
@benixal
@benixal 9 ай бұрын
You're welcome!
@salvatorecervone6352
@salvatorecervone6352 9 ай бұрын
Thanks. Very well but i not understand server push you use. Use google? Where configurations? notification permission is not saved? should it always be requested? Thanks
@benixal
@benixal 9 ай бұрын
Thank you for your comment! In the video, I didn't use a specific push server explicitly because it depends on the user's browser. For instance, if a user is using Chrome, the endpoint is automatically generated as fcm.googleapis.com/fcm/send/... , or, if someone is using Firefox, the endpoint becomes updates.push.services.mozilla.com/wpush/v2/... , The browser takes care of this in the background. (In fact, this is one of the features of the browser and is provided by the browser) Regarding notification permission, it only needs to be requested once. Once the user grants permission, it's typically saved, and subsequent requests won't prompt the user again. You can check whether the user has a token, and if so, you don't need to request permission again. Also, if the user accepts the request once, the browser automatically knows this and will not ask the user questions and returns the same token as before.
@salvatorecervone6352
@salvatorecervone6352 9 ай бұрын
@@benixal thanks for your answer. Is your code ready for testing? there is no need to add anything else in practice.
@benixal
@benixal 9 ай бұрын
Yes, I think the code is ready for testing. Additionally, if you're interested, I have another video where I explain the process using pure JavaScript and PHP: kzbin.info/www/bejne/ip-Zp3h6p7-dd7c
@salvatorecervone6352
@salvatorecervone6352 9 ай бұрын
@@benixal i would integrate with vue. You test? I change anything?
@benixal
@benixal 9 ай бұрын
I haven't tested with vue, but it should integrate smoothly.
@hichamalaoui34
@hichamalaoui34 11 ай бұрын
Excellent Tutorial. Thanks
@benixal
@benixal 11 ай бұрын
You are welcome! Glad it was helpful!
@adejulvian
@adejulvian 7 ай бұрын
this is great, thank you. but when i try from other computer it show error "cannot read properties of undefined (reading 'register')" in console tab browser developer tools. could you help me?
@devnull1484
@devnull1484 8 ай бұрын
Nice, Thank you.😍😍
@benixal
@benixal 8 ай бұрын
Thank you! I'm glad you found the video helpful! 😊
@phdcmd
@phdcmd 7 ай бұрын
JSON data type for mysql column seems to be the proper way to go.
@faridmacadato4356
@faridmacadato4356 9 ай бұрын
when i use php artisan tinker to generate a public and private key it return runtimeException unable to create the key. Why is that?
@benixal
@benixal 9 ай бұрын
This issue usually occurs when the OpenSSL extension is not enabled (or not installed) in your PHP Solution #1: Enable OpenSSL Extension 1. Open the php.ini file. 2. Look for ;extension=openssl. 3. Take out the semicolon before it and save it Solution #2: Generate VAPID Keys Online If you don't have OpenSSL, you can use a website to make VAPID keys. Just search "generate VAPID keys." But remember, this Solution (#2) is mainly for practice, not real projects
@faridmacadato4356
@faridmacadato4356 9 ай бұрын
@@benixal i tried the solution #1 and it still doesnt work. By the way i am using wamp64 as a virtual machine server. Acutally i do have an actual server at cloudways and when I use the php artisan tinker there it generates the keys. Is it okay to use that keys on my local development?
@benixal
@benixal 9 ай бұрын
Yes, it's okay to use the keys generated on your Cloudways server
@mybestclips1118
@mybestclips1118 Жыл бұрын
Very very good. This is the best push notification teaching
@benixal
@benixal Жыл бұрын
Thank you! I'm glad you found the video helpful.
@tandoku9133
@tandoku9133 7 ай бұрын
Is this free when I deploy my project??
@benixal
@benixal 7 ай бұрын
Yes it's %100 free
Vue send push notification with Firebase
12:52
benixal
Рет қаралды 16 М.
Disrespect or Respect 💔❤️
00:27
Thiago Productions
Рет қаралды 26 МЛН
Trick-or-Treating in a Rush. Part 2
00:37
Daniel LaBelle
Рет қаралды 34 МЛН
Mia Boyka х Карен Акопян | ЧТО БЫЛО ДАЛЬШЕ?
1:21:14
Что было дальше?
Рет қаралды 9 МЛН
Firebase Send Push Notification JavaScript + PHP
27:22
benixal
Рет қаралды 15 М.
Laravel: Avoid Try-Catch In Every Method (What To Do Instead)
4:45
Laravel Daily
Рет қаралды 34 М.
One CPU To Rule Them All - Ryzen 7 9800X3D Review
12:47
Linus Tech Tips
Рет қаралды 987 М.
Real-Time Chat with Laravel, Vue.js & Pusher
1:09:33
Scrypster
Рет қаралды 92 М.
Send push notification using javaScript and PHP
19:55
benixal
Рет қаралды 28 М.
Disrespect or Respect 💔❤️
00:27
Thiago Productions
Рет қаралды 26 МЛН