I want to build real time notification system just like facebook and google+. I know they are using comet and ajax push technology for that.I have found the tutorial http://www.zeitoun.net/articles/comet_and_php/start from this link i just want to know that how can i implement Comet with iframe technique(you can found this on above link) using mysql database and how i can i identify the user to whom i push the data.
Thank You.
Related
I'm trying to add a real time notification to my Symfony project but i don't know how.
I need some informations because this is my first project with Symfony.
The modern way to send real time messages is MercureBundle.
However, this may be done via WebSockets or even Socket.IO.
I'm setting up a server using firebase and want to load Tweets dynamically/live from Twitter by filtering them by hashtags.
Basically what I want to do is integrate a live feed of sorts from twitter to load tweets about Bitcoin and other Cryptocurrencies on my webpage. I'm using Vue CLI for the front end.
I've done extensive research on twitter, signed up for a developer account and had many go's and tries, but without any luck. I am really stuck as there does not seem to be any way to fetch tweets and then display the, live on my front end.
Ì actually do not have any code to show, as I do not even understand how it would be possible.
I've set-up the backend successfully on firebase and do not have any issues with CRUD operations and Authentications etc. What I need is to dynamically load(live) tweets from twitter and then filter them using a hashtag.
I haven't been successful at even understanding if this is possible, so I haven't received any error messages. It seems to me that you can only let users sign in and then they can post tweets through an integrated API.
You have to open a twitter stream in your backend and send the results to the frontend using sockets, if you want it to be updated in real time.
You can check this out to get you started:
Running a Node.JS background process for Twitter streaming API in Firebase
Adding to what Haris has said, another alternative would be to use SSE (Server-Sent Events) since you are only concerned of unilateral communication rather than bilateral communication. A tutorial for this action, however, will depend on the backend framework you are using.
Feel free to consult the following link that suites your framework on how to use SSEs:
Server-Sent Events with Node
Real-Time Web Apps with Server-Sent Events (Express JS)
Server-Sent Events with Fastify (fastify-sse)
Server-Sent Events with Hapi (SuSiE)
I am working on a mobile application, this application has some features like users can follow each others, adding comments or reviews, like something .. etc.
So the requirement is we have notifications icon in the app, when the user click on it a list of notification will show up, taken in consider those notifications should be real time.
Many things comes to my mind will reviewing this feature, like using firebase to send the notification, or I can develop internal notification service for this purpose.
The question is what do you suggest guys, do you think using firebase is a good idea for such case? or there is something else you recommend for such case
Thank you in advance.
You can try signalR more manageable than firebase but you need to know programing to manage signalR
I want to implement a push notification server which should send push notifications via apn (apple), gcm (Google) and wns (windows). I already checked push platforms like the one from Amazon, but none of these do met the requirement that I maybe later want to implement an additional service provider (e.g. for location based push). In addition two that nearly no provider offers an api so that various systems can connect to it.
Want kind of libraries or frameworks do you know to send push notifications in an easy way?
I have already seen https://github.com/rs/pushd but I am searching for an java / Javascript based solution. Some others doesn't provide solutions for Windows.
Does anybody has any tips?
Thanks,
Fahim
Those are working well for me.
Apple:
https://github.com/notnoop/java-apns
Google:
https://github.com/google/gcm
Windows:
https://github.com/fernandospr/java-wns
I want to push some thing (like Notification) to user's page, i tried a function that search database and then DB had new notification, it showed the Notification to us, but it was a bad way, someone know how i can do it better?
You can use Comet or SignalR. This is a LINK to explain how use it
You need to implement Client side side based code, so use ajax and java script to that...