C
C
Crash2016-07-29 14:12:52
Yii
Crash, 2016-07-29 14:12:52

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

3 answer(s)
_
_ _, 2016-07-29
@AMar4enko

Here is a native push notification option via Google Cloud Messaging
https://developers.google.com/web/fundamentals/get...

O
Oleg Karnaukhov, 2016-08-17
@BupycNet

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.

G
Gleb Kozhevnikov, 2019-02-28
@gleb-kozhevnikov

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 question

Ask a Question

731 491 924 answers to any question