HTML Viber链接到特定编号
问题描述:
我需要帮助以在我的应用程序中实现Viber编号.它应该使用Viber聊天选项直接连接用户,并且应该在需要发送消息的位置添加特定的号码.是否可以通过HTML做到这一点?可能是其他方式吗?
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?
答
与用户打开虚拟聊天:
<a href="viber://chat/?number=%2BPHONENUMBERWITHCOUNTRYCODE">Viber Chat</a>
*重要!该数字应使用"%2B "而不是" + ".
*IMPORTANT! the number should be with "%2B" instead of "+".
您还可以打开Viber联系人,以便用户可以选择通话或聊天.
You can also open Viber contact, so a user will be able to choose call or chat.
编辑:联系人链接似乎已于2019年2月停止工作.聊天链接仍然有效
Looks like contact link stopped working on February 2019. Chat link still works
<a href="viber://contact?number=%2BPHONENUMBERWITHCOUNTRYCODE">Viber Contact</a>