Search code examples
javachatapplozic

How can I get A List Of contacts A user chat with in Appolozic?


Folks,

I am trying out my hand on Applozic since Yesterday. I find it awesome but a problem about How to get the Contact list for a Particular user?

What I mean to say that,

Suppose I am user A and I chat with B, C, D and E. I want to show the chat user list containing the name of B,C,D and E. I don't want the groups.

I checked out this link, how to list out my contact list and send message in applozic

and, How to get list of my users in AppLozic

But, I am not getting it . Actually I want the list like the screenshot given on your github page, enter image description here

I followed this link and added users, https://docs.applozic.com/docs/android-contacts but not getting the list.


Solution

  • That screen which is attached its for conversation screen you will see users there only when you had a conversation with any users

    To start the conversation with user there are two ways

    1) Follow this doc link for adding the applozic-settings.json file for enabling the contacts on click of plus button it will show the all registered contacts in applozic "registeredUserContactListCall": true,

    2) Insert your own contacts from your server by using applozic contacts api methods this is the doc for contacts api link and the sample code link for contacts inserting into applozic local data base