Show Desktop Notifications | JavaScript Tutorial

  Рет қаралды 9,650

OpenJavaScript

OpenJavaScript

Күн бұрын

Пікірлер: 16
@OpenJavaScript
@OpenJavaScript 2 жыл бұрын
Thanks for watching! 👉 Source code: openjavascript.info/2023/01/20/show-desktop-notifications-with-javascript-in-the-browser/
@constantine9074
@constantine9074 Жыл бұрын
this is one of the most valuable channels one youtube in field of we dev... and its not only for beginners ....
@zeljkostevanovic6051
@zeljkostevanovic6051 2 жыл бұрын
Greetings from Serbia! Wish you all the best.
@OpenJavaScript
@OpenJavaScript 2 жыл бұрын
Thank you!
@vellenger
@vellenger 2 жыл бұрын
Muy Bueno, se Agradece que compartas el tutorial.
@OpenJavaScript
@OpenJavaScript 2 жыл бұрын
Gracias, me gusta compartirlo :)
@sougataghar1179
@sougataghar1179 2 жыл бұрын
Thanks :)
@OpenJavaScript
@OpenJavaScript 2 жыл бұрын
No worries, you're welcome :)
@MuttaqinMashrafi
@MuttaqinMashrafi 9 ай бұрын
🎉 you are doing great . But i wanna know will it be working when user is not in the browser ? I mean if i am using a database and when something changes in the database i want to send a notification. So will it be fine to use it with that?
@haiderjaafer8164
@haiderjaafer8164 2 жыл бұрын
Great tutorial keep going forward
@OpenJavaScript
@OpenJavaScript 2 жыл бұрын
Thanks!
@samworldpk
@samworldpk 3 ай бұрын
how can I use it as a heartbeat of some stock API in browser. I donot want to bind it any web page. something like chrome extension with background script
@samworldpk
@samworldpk 3 ай бұрын
I tried the chrome notifications but it is not visible some how with chrome alarms
@cloudsystem3740
@cloudsystem3740 Жыл бұрын
thank you very much but how to save the notifications so the user not getting the same notification every refresh ? :)
@OpenJavaScript
@OpenJavaScript Жыл бұрын
Good question! For this, you need a solution that will pass data across pages. My go-to solution in this case would be to use localStorage. So, after a notification has run, store a value in LS. Also, before showing a notification, check the value of localStorage. For example: // Check to see if const status = localStorage.getItem('notification-status'); if (status !== "shown") { // If no record of notification running previously is present in LS... // ...run code for displaying notification... // ...and set record in LS so it doesn't run again next time: localStorage.setItem('notification-status', "shown"); }
@cloudsystem3740
@cloudsystem3740 Жыл бұрын
@@OpenJavaScript Thanks :)
Push Notifications with Service worker
14:15
Akilesh Rao
Рет қаралды 39 М.
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 55 МЛН
UFC 310 : Рахмонов VS Мачадо Гэрри
05:00
Setanta Sports UFC
Рет қаралды 1,2 МЛН
Арыстанның айқасы, Тәуіржанның шайқасы!
25:51
QosLike / ҚосЛайк / Косылайық
Рет қаралды 700 М.
SvelteKit is my mistress
4:19
Fireship
Рет қаралды 430 М.
How to MASTER Javascript FAST in 2023
12:49
Internet Made Coder
Рет қаралды 384 М.
Shadcn + Next.js 13 is HEAVEN | A QUICK GUIDE
13:30
developedbyed
Рет қаралды 144 М.
How To Send Push Notifications With JavaScript?
18:51
Piyush Garg
Рет қаралды 47 М.
Web Push Notifications - End to End implementation
17:24
A shot of code
Рет қаралды 107 М.
Blobs and Blob URLs | JavaScript Tutorial
15:32
OpenJavaScript
Рет қаралды 32 М.
ASMR Programming - Weather App With Javascript - No Talking
20:30
AsmrProg
Рет қаралды 2,9 МЛН
Learn Prisma In 60 Minutes
59:25
Web Dev Simplified
Рет қаралды 443 М.
How To Send Push Notifications With JavaScript
11:38
Web Dev Simplified
Рет қаралды 363 М.
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 55 МЛН