A
A
Alex Kizyma2019-06-05 23:31:37
JavaScript
Alex Kizyma, 2019-06-05 23:31:37

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

2 answer(s)
D
dollar, 2019-06-06
@dollar

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.

S
Sherzod, 2019-06-07
@reactmoon

There are different libraries/packages for this. I think the following libraries will be enough if you work with the Yii framework (2.0):
Alert Widget
Yii2 sweet alert

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question