iOS XMPP framework get all registered users

后端 未结 3 1815
盖世英雄少女心
盖世英雄少女心 2020-12-09 23:53

In my chat application I want to get all online registered users. So everybody and not only people in my roster which is achieved with this code:

- (void)xmp         


        
3条回答
  •  青春惊慌失措
    2020-12-10 00:53

    After googling, You can not get all user easily, You must need to create Shared Roster Groups by follow step in the Example 1: everybody can see everybody else after done this you will get all the online users in the below delegate methods.

    - (void)xmppStream:(XMPPStream *)sender didReceivePresence:(XMPPPresence *)presence
    

提交回复
热议问题