Android ADD FRIEND using Smack

前端 未结 1 551
星月不相逢
星月不相逢 2021-01-03 01:13

I am new to the use of smack library and making one chatting application. I have made upto much extent and at this step i want to ask two questions.

  1. when i

相关标签:
1条回答
  • 2021-01-03 02:04

    1, The problem is you must register a PacketListener for Presence.Type.subscribe before you connect to server. All the process of add and accept friend i answered in here

    2, You can use UserSearch class to search for a specific user and if user is not found on server then you can assume that user is not registered on server.

    0 讨论(0)
提交回复
热议问题