Help -> someone did notifications work on cake 3.6


#1

#2

Hi there!
Don’t know exactly what you mean.
Are you looking to something like that? https://book.cakephp.org/3.0/en/views/cells.html?

Or do you want to push notifications to mobile users or push messages out of browser to operation systems like message center in windows and macOS?


#3

Hello, thanks for answering, I want to push notifications to mobile users and push messages out of browser, my customers need to know for example a new tickets was created.

Thanks a lot, saludos y gracias.


#4

Hey, You can use
FCM or make ajax for new notifications which are stored on db.


#5

When using ajax, we are sending requests to server periodically. Depends on the interval, it can result in large number of server hits, which can become the bottleneck easily.
some plugin in cake 3.6??? some example? thanks a lot


#6

Yes , AJAX is the last option, and no one recommend to do that, you can use pusher or websocket or Firebase Cloud Messaging.
I have used websocket in one of my project.


#7

For websocket use https://github.com/voryx/Thruway for backend , And wampy.js for frontend.
It’s pub-sub model, so server publish notification and client recieve that subscribed notification topic.


#8

I wanna use Firebase Cloud Messaging. Any example to help? thanks a lot


#9

you can read the docs it’s all nice and clean

FCM


#10

Very nice share, thanks munavvard222, the docs are amazing and a great scalable solution for small projects !!!