How can I implement auto join for XMPP room in iOS

2019-05-10 22:41发布

问题:

I want to do Auto Join room in XMPP group chat.

I have all of group created from back end Server, first time i join the room but when i disconnect from XMPP (out of the app) and back inside app and re-connect xmpp, I again need to join the room.

In side app one user already available in multiple room so not possible to Join again n again in the room . Please help..

Thanks in Advance!

回答1:

I think you have to show this link : https://xmpp.org/extensions/xep-0048.html . Here you can find the solution of Auto join and room storage.



回答2:

There is No way for , reEnter to your rooms Automatically. you should make a loop in your group list ( rooms ) and Enter to each of them. i recommend to do it by operationQueue.