Answer the question
In order to leave comments, you need to log in
How to implement push notifications on a website using Yii2?
I solve the problem with push notifications on the site. The scheme is as follows: a task is set on the site, a responsible person is appointed from the list of users (internal project). After saving the task, the responsible person should receive a notification about the assigned task. Such a notification system exists, for example, in the Bitrix 24 system. How can I implement this on a Yii2 website? Is it possible to do this with standard framework tools? Notifications should pop up without reloading the page, so I think the topic with flash messages will not work here.
What can and should be used here, how to implement it?
Answer the question
In order to leave comments, you need to log in
Here is a native push notification option via Google Cloud Messaging
https://developers.google.com/web/fundamentals/get...
Use PushAll
- Notifications to all platforms when the browser is closed - and computers and smartphones and tablets, even mail can come if the user selects this method of receiving
- There is a history of notifications
- You send a notification to a specific user or group of users, and already on the PushAll side it decides where and how to send to the selected devices.
As an option - pull the script every n-seconds with Ajax and check for new notifications.
Or, as already mentioned, long pool, sockets.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question