HTML Viber link to specific number

Velimir Lazarevic picture Velimir Lazarevic · Jul 10, 2015 · Viewed 25.2k times · Source

I need help to implement Viber number in my application. It should connect user directly with Viber chat option and it should add specific number where message need to be send. Is it possible to do this through HTML? What could be other way?

Answer

Iggy picture Iggy · Jun 4, 2018

To open viber chat with a user:

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

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

You can also open Viber contact, so a user will be able to choose call or chat.

EDIT: Looks like contact link stopped working on February 2019. Chat link still works

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