开发者

PHP - Push Notifications [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in i开发者_JAVA技巧ts current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 11 years ago.

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


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


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜