HTML Viber reference to a specific number

I need help implementing a Viber number in my application. It must connect the user directly with the Viber chat option, and he must add the specific number where the message should be sent. Can this be done via HTML? What could be a different way?

+7
source share
2 answers

To open a virtual chat with a user:

<a href="viber://chat/?number=%2BPHONENUMBERWITHCOUNTRYCODE">Viber Chat</a>

* IMPORTANT! number must be with " % 2B " instead of " + ".

You can also open a Viber contact so that the user can select a call or chat.

UPDATE: Looks like the link stopped working in February 2019. Chat link still working

<a href="viber://contact?number=%2BPHONENUMBERWITHCOUNTRYCODE">Viber Contact</a>
+6

:

<a href="viber://add?number=12345678">Viber</a>

:

<a href="viber://chat?number=12345678">Viber</a>

:

<a href="viber://pa?chatURI=[public account URI]&text=[message text]"> some text </a>
+5

All Articles