Learn how to create, update, manage, and add users to your contact list.
The Contact List API is rather straightforward. User A sends a request to become “friends” with user B. User B accepts the friend request. And now user A and B appear in each other’s roster.
Visit Key Concepts page to learn the most important QuickBlox concepts.
You can access the contact list on your login to chat. The contact list object will be returned in callback. Also, the following function gives you an access to contact list.
To add a user to the contact list, use the add()
method.
Maximum number of contacts is 300.
Another user will receive a request to be added to the contact list. The onSubscribeListener
callback will be called.
To confirm the request, use the confirm()
method.
A user will be informed that you have accepted the contact request by the onConfirmSubscribeListener
callback.
To reject the request, use the reject()
method.
A user will be informed that you have declined the contact request by onRejectSubscribeListener
callback.
To remove a previously added user from the contact list, use the following method.
You can also track contact list updates in real-time by using the code snippet below.
Learn how to create, update, manage, and add users to your contact list.
The Contact List API is rather straightforward. User A sends a request to become “friends” with user B. User B accepts the friend request. And now user A and B appear in each other’s roster.
Visit Key Concepts page to learn the most important QuickBlox concepts.
You can access the contact list on your login to chat. The contact list object will be returned in callback. Also, the following function gives you an access to contact list.
To add a user to the contact list, use the add()
method.
Maximum number of contacts is 300.
Another user will receive a request to be added to the contact list. The onSubscribeListener
callback will be called.
To confirm the request, use the confirm()
method.
A user will be informed that you have accepted the contact request by the onConfirmSubscribeListener
callback.
To reject the request, use the reject()
method.
A user will be informed that you have declined the contact request by onRejectSubscribeListener
callback.
To remove a previously added user from the contact list, use the following method.
You can also track contact list updates in real-time by using the code snippet below.