P
P
Peter Bishop2014-11-13 06:27:28
Notifications
Peter Bishop, 2014-11-13 06:27:28

How to create notifications from multiple pages on one notification center (JS,HTML)?

One page is open in the browser, let's say that when you perform some action, a notification pops up (written in JS or html).
Also in another tab on another page, but the notification will be different there.
I want to make it so that all received notifications are displayed on the 3rd tab, like the notification center on iOS / Android /.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Frank, 2014-11-13
@Peter_Bishop

so what's the problem? Use the database, and write all notifications there, and delete them after reading them.
You can look towards Redis or write all notifications to an array and this array to the cache, and then display it where necessary.
And update the cache after reading notifications or adding new ones

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question