[英]Save contact data to mobile phone from website like QR Contact
Is there a way to generate a clickable link in html to save some contact information to the users mobile phone? 有没有办法在html中生成可点击的链接,以便将一些联系信息保存到用户手机?
When I scan a QR-Code, I get the contact information. 当我扫描QR码时,我会收到联系信息。 How can I do this in html/php/JavaScript?
我怎么能在html / php / JavaScript中这样做?
Since android doesn't support vcf files, there should be another way to do this. 由于android不支持vcf文件,应该有另一种方法来执行此操作。
Javascript running on device regular browser can't just write directly to android internal databases or files(unless you have an application installed on the target android device which resolves some certain uri scheme leading to them). 在设备常规浏览器上运行的Javascript不能直接写入android内部数据库或文件(除非你在目标android设备上安装了一个应用程序,它解决了某些导致它们的uri方案)。
you can use tel: uri or direct the user to a ".vcf" file(android Does support it) and have the user decide. 您可以使用tel:uri或将用户指向“.vcf”文件(android确实支持它)并由用户决定。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.