[英]Is it possible to make iPhone recognize a Contact's name belonging to a phone number on a web page?
I'm building a simple web page with contacts and their phone numbers. 我正在建立一个包含联系人及其电话号码的简单网页。 When accessing the page from an iPhone the iPhone recognizes the number and when the user touches the phone number a call is started.
从iPhone访问该页面时,iPhone会识别该号码,并且当用户触摸该电话号码时,便会开始通话。 When the call is finished and the user want to save the number in the phone book (Make new Contact), I would like to have the name of the contact pre filled into name field of phone book entry.
通话结束后,用户希望将号码保存在电话簿中(“新建联系人”),我希望将联系人的姓名预先填写到电话簿条目的名称字段中。
Is it possible to make iPhone recognize the name belonging to a phone number on the web page? 是否可以使iPhone识别网页上电话号码的名称? Is there a meta or XML tag that let iPhone identify the name from the web page?
是否存在让iPhone从网页中识别名称的meta或XML标签?
Best regards Will 最好的问候威尔
Unfortunately not. 不幸的是没有。 The best way to do this would be to serve up a vCard, but Safari doesn't support them for security reasons.
最好的方法是提供vCard,但出于安全原因,Safari不支持它们。 The closest I've found is this question , but the closet solution there involves returning an ics (iCal) file with a vCard embedded inside it.
我找到的最接近的是这个问题 ,但那里的壁橱解决方案涉及返回一个ic(iCal)文件,其中嵌入了vCard。 This is not ideal.
这是不理想的。
So to summarise, there isn't a way to do this at present. 综上所述,目前尚无办法。 This question has a lot of good information as well:
这个问题也有很多有用的信息:
How to add a contact to the iPhone's Address Book from a Web Page? 如何从网页向iPhone的通讯簿添加联系人?
If you are building your webpage with a view to embedding it inside a native app there are other options, but it sounds like that's not the case. 如果您要构建网页以将其嵌入本机应用程序中,则可以使用其他选项,但这听起来并非如此。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.