How to send Desktop Notification for each hour? [closed]

52
November 06, 2021, at 6:40 PM
Closed. This question needs details or clarity. It is not currently accepting answers.

Want to improve this question? Add details and clarify the problem by editing this post.

Closed 2 days ago.

Improve this question

I want to send desktop notification from live website for each hour. It should works like if it is 10 o' clock 'desktop notification' will appear and after 1 hour i.e. 11 o' clock again 'desktop notification' will appear and son. From 9 to 6 for each hour Desktop Notification will appear.

I am using laravel 7, javascript and jquery. Any of these language it is convenient for me. please help me.

code in jaavascript

function showNotification()
 {
     const notification =  new Notification("New message from decode!",{
         body: "do you like to report something?",
         icon: "https://myonecity.in/crm/storage/uploads/logo/logo.png"
     })
     notification.onclick = (e) => {
         
         window.location.href = "https://myonecity.in/crm/";
     }
 }
 function ReportNotification()
 {
     if(Notification.permission === 'granted')
     {
         showNotification()
     }
     else if(Notification.permission !== 'denied')
     {
         Notification.requestPermission().then(permission => {
             if(permission === 'granted')
             {
                  showNotification();
             }
         })
     }
 }

if you give the permission 'granted' it will come continuously. But I want to show it in each hour.

READ ALSO
Select2 - search function keyword

Select2 - search function keyword

my first time to use stackoverflow and i just want to ask question

21
Prevent auto complete non-cod payments on admin side

Prevent auto complete non-cod payments on admin side

Preventing on customer side is pretty easy:

56
PHP: use declared variable with data from MySQL inside an included file [closed]

PHP: use declared variable with data from MySQL inside an included file [closed]

Want to improve this question? Add details and clarify the problem by editing this post

75
OPC UA Client(C#) with a GUI and a node js server

OPC UA Client(C#) with a GUI and a node js server

So I have created a nodejs Server from this tutorial: https://github

136