I'm doing an iPhone chat app - using an openfire chat server.
How would you communicate with the openfire server to achieve BOTH:
- find out if the receiving user is currently online or not (connected to openfire xmpp server or not) - which determines if we do a push notification or further action to an offline user
AND
- send the message contents to the receiving user
... WITHOUT doing two calls?
How can you do it in ONE call/request?
Any insights are appreciated! Any way to hack the openfire server?