React Native

Hello I am implementing the live chat in React Native. However I found WebView a very complete solution, my question is Is it possible to add the user and email to the link we sent in the webview? That to user is able to start chating instead to fill the email and name?

In case that you would like to use the React Native as the implementation, updating customer’s data is not yet supported in a regular implementation but it can be done via alternative React Native installation method.

To attach other info to the link, like visitor’s name or email and the group in which the chat will start, the URL should look like this:<LICENSE_ID>/open_chat.cgi?groups=XX&name=JohnDoe&email=test@test.test

You will need to load the name and email parameters from their db/app and add them to the link but it is possible :slightly_smiling_face:

1 Like

Awesome! Thank you for your detailed answer.

How do I create a custom field like name and email and send it as a URL param


If you want to create a direct chat link, the random example would look like that:<LICENSE_ID>/v2/open_chat.cgi?name=visitor& 

With this kind of link, you don’t even have to use pre-chat survey :slight_smile:

But if you have our standard widget implemented on your site in regular manner, you’d have to use those:

moreover, if you want to create custom fields, you can set it in the LiveChat settings.

Let me know if you have more questions!

How can I send group when I’m using WebView on React Native?
Using like this does not work:<LICENSE_ID>/open_chat.cgi?groups=XX&name=JohnDoe&email=test@test.test

I have to pass the name of group?
For example, if my group is called “Bug problem” what I have to write on the parameters?

Hi Matheus!

A link like this:<license_id>/v2/open_chat.cgi?groups=2
leads to the group with ID “2” (I have tested that and can confirm)

Please make sure to use this exact format - as long as the link you implement in the webview loads the group you want,
it should be exactly the same in a webview.

If you find that the link you created does not lead to the specified group - please reach the support on our website, they’ll help you figure out what needs to be changed in your link so that it works perfectly for your use case.

Kind regards :slight_smile:

1 Like

And how to send a phoneNumber? I wanna pass throw this a name and Phone number as a question.


The link currently only takes name and email as standard setters,
you can however pass a phone number as a custom variable like on the example from article below:

and the agent will be able to see this parameter during the chat.

Kind regards :slight_smile:

1 Like