HTML Viber link to specific number
Asked Answered
C

2

20

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?

Couturier answered 10/7, 2015 at 11:24 Comment(2)
Unfortunately it's impossible #30542305Superintend
Possible now (2017 year) https://mcmap.net/q/662420/-launching-viber-app-via-url-scheme-on-iosLazy
T
29

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>
Travers answered 4/6, 2018 at 11:21 Comment(0)
C
16

You can add number:

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

or you can chat to:

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

or you can send message to channel:

<a href="viber://pa?chatURI=[public account URI]&text=[message text]"> some text </a>
Consultation answered 31/10, 2017 at 9:27 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.