Android smack library subscription(not showing inbond or outbond notifications)

后端 未结 3 1023
Happy的楠姐
Happy的楠姐 2021-01-07 07:52

I am working on an android chat application in which i am using smack library for instant messaging everything is working fine but the huge problem is in subscription.

3条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-07 08:33

    In order to receive subscription requests, you must:

    1) Send presence:

    
    

    2) Retrieve roster:

    
      
    
    

    First-time client writers are often surprised by the second one.

提交回复
热议问题