Save contact number to mobile phone

僤鯓⒐⒋嵵緔 提交于 2019-12-12 12:10:51

问题


I am working on a mobile website, and I am suppose to add contact number of my client to user's mobile phone (obviously on click of a button), I was wondering if this is possible using jQuery, JS, Jquery Mobile or HTML 5, like by using <a href="tel:111222333">Call</a> we can bring up cell phone dialer etc, thanks in advance


回答1:


You just can't store directly contact on the phone using js or html5 stuff.

What you can try is creating a vcf card server side and redirect the client to download this newly generated vcf card... I've haven't yet tested this solution, but I think it can work.




回答2:


In iOS, phone numbers are automatically detected, even if they aren't tel links. When clicking them there are two options – call, or add to address book. This isn't something that you need to implement, the UA does it for you.



来源:https://stackoverflow.com/questions/6804041/save-contact-number-to-mobile-phone

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!