How can I implement auto join for XMPP room in iOS

匆匆过客 提交于 2019-12-07 17:15:53

问题


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.



来源:https://stackoverflow.com/questions/33730066/how-can-i-implement-auto-join-for-xmpp-room-in-ios

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!