How can I implement auto join for XMPP room in iOS

2019-05-10 22:32发布

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!

2条回答
疯言疯语
2楼-- · 2019-05-10 23:03

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.

查看更多
smile是对你的礼貌
3楼-- · 2019-05-10 23:10

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.

查看更多
登录 后发表回答