xmppo / node-xmpp-bosh

An XMPP BOSH & WebSocket server (connection manager) written on node.js using Javascript
https://github.com/xmppo/node-xmpp-bosh
263 stars 85 forks source link

long polling on ios devices... #83

Closed netdude787 closed 11 years ago

netdude787 commented 11 years ago

Hi, Is there a way to avoid long polling in node-xmpp BOSH? Something like "always-available" kind of client BOSH session. I need it for ios devices where background jobs are not allowed, hence long polling sessions can't be maintained for client when app is not active. When application is closed on ios device I want to keep the presence state of client 'available' and deliver push notifications. Most probably this is done already, please point me to the precedence.

Thanks.

dhruvbird commented 11 years ago

@netdude787 This is a problem many people face. Sorry, but I don't know a good solution to this problem though :-(

http://stackoverflow.com/questions/10459776/xmpp-push-notification-for-ios-chat-app might be helpful, but I am not aware of a spec beyond http://xmpp.org/extensions/xep-0237.html which seems to be deprecated.

You might need to "roll your own". I'd ask on the XMPP forums/SO to get a better answer though.