Advertisement
Guest User

dasd

a guest
May 22nd, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. I'm working on a specific CRM application and I'm trying to send notifications with pusher and I had some issues: the user has to be connected to receive notifications.
  2. Everything works fine while the user is online. But when he's offline he doesn't receive anything.
  3. Thank you.
  4.  
  5. That's the nature of Pusher. It pushes to the users browser directly. If the browser is not online it won't be listening to the channel you subscribe the user to. In other words, if the user is not online they are not subscribed, thus, will not receive the notification. – Scott Plunkett Nov 18 '16 at 18:57
  6.  
  7. Ok thank you, I understood it in a wrong way. Can you give me a solution for a laravel notifications system ? – Jrb Youssef Nov 18 '16 at 20:41
  8.  
  9. You will have to store the events yourself in a database, and when a user reconnects, you should send them all the events since the last even that they received through Pusher. – Will Sewell Nov 19 '16 at 10:24
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement