Domanda

I integrated XMPP chat server in my iOS application. From DidReceiveIQ, It gives the users list after connection to XMPP server.But If I add any new user to roaster , DidReceiveIQ gives only newly added user and not the compete list. So, my question here is what will be the best way to fetch users list from roaster?

È stato utile?

Soluzione

Check iPhoneXMPP example application bundled with XMPPFramework: when you plug in XMPPRoster module with XMPPRosterMemoryStorage or XMPPRosterCoreDataStorage - it will automatically sync users with selected storage, including future addition and deletion, and you can use that storage as datasource for your UITableView, etc.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top