I
I
Ivan2018-12-01 18:33:16
Laravel
Ivan, 2018-12-01 18:33:16

How to make push notifications for an authorized user knowing only his id?

How to make push notifications for an authorized user knowing only his id in the laravel + react bundle, i.e. you need to link laravel + react via socket.io, maybe there are ready-made examples

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Petr Vasiliev, 2018-12-04
@danial72

No way with bare laravel.
To do this, you need to bind the push service (the simplest solution) and work with its id.
The second option is fake push.
At each request of this user, check if there are any messages for him and if there are: show the modal.
The third option is to raise your server push notifications: google push server habr

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question