I am using ejabberd server and ios xmppframework. there are two clients, A and B.
When A and B are online, A can send message to B successfu
At last, I use Ping together with Stream Management: http://xmpp.org/extensions/xep-0198.html This problem is solved.