Answer the question
In order to leave comments, you need to log in
How to implement notifications in the browser?
I want to implement a calendar in yii2 in which I will create events indicating the time and date, they should show push notifications in the browser at that time
if an event is created, for example, it has a title, description and date with the time when the time comes how to show notifications?
Answer the question
In order to leave comments, you need to log in
To show notifications in the browser using JavaScript, just google two words: javascript and notification.
You will get to the documentation: https://developer.mozilla.org/en-US/docs/Web/API/n...
Next, in yii itself, you need to deal with the calendar. Information must somehow get to the page, either during page load or via ajax. This is already a complete task.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question