Conversation

React Native conversation guide

Launch chat

Launch the native chat screens on the particular platforms using the below code.

Launch chat list screen

Launch the main chat screen using the below code:

ApplozicChat.openChat();

Launch a chat thread with a specific user

You can launch chat with particular user by passing the userId in the below function:

ApplozicChat.openChatWithUser(userId);

Launch a chat thread with a specific group

You can launch a chat thread with a particular group by passing applozic generated groupId or with your assigned groupId clientGroupId in the below function:

With Applozic generated GroupId

ApplozicChat.openChatWithGroup(groupId , (error,response) =>{
               if(error){
                 //Group launch error callback
                 console.log(error);
               }else{
                 //Group launch successful callback
                 console.log(response)
               }
             });

🚧

Note

groupId must be Numeric.

With your assigned groupId (Client group Id)

ApplozicChat.openChatWithClientGroupId(clientGroupId, (error,response) =>{
            if(error){
              //Group launch error callback
              console.log(error);
            }else{
              //Group launch successful callback
              console.log(response)
            }
          });

🚧

Note

groupId must be String


What’s Next
Did this page help you?