0
votes

I'm using IOS XMPPFramework as our client infrastructure and we are using ejabberd as our XMPP Server. However when users deleted their application its impossible to retrieve the already registered rooms. Is something like that possible in XMPP (similar to whatsapp)

Thanks

2
See you again. BTW, there is a question might need your help. stackoverflow.com/questions/40637958/…dichen

2 Answers

2
votes
  1. Configure the room as Persistent, Member-Only.
  2. Add the user into member list.
  3. Discover room.

    xmppStream = XMPPStream()        
    xmppStream!.addDelegate(self, delegateQueue: DispatchQueue.main)
    
    // MUC
    muc = XMPPMUC(dispatchQueue: DispatchQueue.main)
    muc?.activate(xmppStream)
    muc?.addDelegate(self, delegateQueue: DispatchQueue.main)
    
    muc?.discoverRooms(forServiceNamed: XmppMUCServer)
    
0
votes

The way to implement this would be to store Bookmarks on the server, which would be a list of all the rooms you are interested in. As bookmarks are stored on the server, you can still retrieve them when you reinstall the app.

The XMPP extension defining bookmarks is XEP-0048.