Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PHP - Push Notifications [closed]

Tags:

php

What methods can be used to make PHP capable of becoming a push notification server?

like image 344
MKN Web Solutions Avatar asked Mar 27 '11 22:03

MKN Web Solutions


2 Answers

You might like this: http://blog.boxedice.com/2009/07/10/how-to-build-an-apple-push-notification-provider-server-tutorial/

In few words: Push notifications mean the client becomes the server and vice versa; in fact all you need is a client that listens, and a server that queries those clients listed somewhere. Some servers exist, there's this one for real time notification that's used with statusnet I just can't remember its name right now. Maybe it can help, whenever I come across the name back I'll get back to ya. Meanwhile, read the tutorial above it might give you some gold ideas.

edit

The real time server is called Meteor.

There are a lot of these: http://status.net/wiki/Realtime

like image 191
CoolStraw Avatar answered Nov 15 '22 07:11

CoolStraw


You should use a specific HTTP Push server to maintain permanent connections with the clients (the browsers) and then send the events from your PHP code or backend systems to that HTTP Push server for the delivery to those clients.

There are a lot of technologies and server implementations for that kind of HTTP push servers. You can find a lot of information with a google search or you can take a look for example at socket.io.

like image 33
ggarber Avatar answered Nov 15 '22 07:11

ggarber