2
votes

I'm creating Google talk client for iOS. I have BOSH server (used node-xmpp-bosh) and iOS client (used xmppframework). The iOS client connect through this BOSH server.

Now, how can I made a push notification to client (possibly from Bosh server) whenever there is incoming chat message or friend request?

Thanks!

2

2 Answers

3
votes

node-xmpp-bosh actually provides for exactly this sort of use-case. The BOSH server is an instance of an eventpipe that lets you pipe events to/from the BOSH server to your custom modules/plugins. This is where you can code up the logic for the push notification service.

The advantage of doing this on the BOSH server is that you can support every XMPP service and not just the one that you control the XMPP server for. i.e. You can provide this functionality for google talk, facebook, jabber.org, etc...

Disclosure: I'm one of the authors of node-xmpp-bosh.

1
votes

To support Push notification you need a special change on the server. We have developed that module for ejabberd (this is something you can see in TextOne and OneTeam). The details to implement push notification yourself is available on: http://developer.apple.com/library/mac/#documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Introduction/Introduction.html