Answer the question
In order to leave comments, you need to log in
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
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 questionAsk a Question
731 491 924 answers to any question