I'm making an iOS app which can open Viber app and automatically call a person or go to chat window with the person. Is there any url scheme for Viber to do that such as:
viber://tel:<phone_number>
viber://chat:<phone_number>
I followed this link but it's for Android.
This works: "viber://chats" or "viber://calls"
I sent a mail to the Viber support and they told me that this kind of URL (opening Viber call/chat with a phone number) are no more supported. When typing Viber version is 5.6.
Look at their answer:
support@viber.com:
"Thank you for contacting us. Unfortunately, there isn’t such option in Viber."
The only thing I've found is an url to forward a message: https://www.viber.com/en/developers/share_on_viber you can specify the text but not the recipient
Example:
as for now (26.03.2017), I found this URI are working:
and some links to interact with Public Accounts https://developers.viber.com/tools/deep-links/index.html - viber://pa?chatURI=hello&context=abcdefg&text=hi - attempt to wrte hi to hello public account
support forum: https://support.viber.com/
and they have chrome extension - https://support.viber.com/customer/en/portal/articles/2191386-new-chrome-web-extension#top
It will open the particular user contact. Give user to select chat and call.
it worked for me!
You can check by using
if Viber app is installed on device, and viber handle this url scheme it will return true otherwise false.
You could use this code to accomplish what you want: