简体   繁体   English

是否可以使iPhone识别属于网页上电话号码的联系人姓名?

[英]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.

相关问题 iPhone SDK:从电话号码获取联系人姓名 - iPhone SDK: Getting Contact's Name from the Phone Number 是否可以使用代码设置联系人电话号码的铃声文件(名称)? - Is it possible to set the ringtone file(name) for a phone number in a contact using codes? 如何从网页添加联系人到 iPhone 的通讯录? - How to add a contact to the iPhone's Address Book from a Web Page? 从iPhone的地址簿中选择一个联系人并添加一个新的电话号码 - pick a contact from iPhone's address book and add a new phone number into it 有没有办法识别用户的iPhone的访问并自动调整网页以适合iPhone屏幕尺寸? - Is there a way to recognize the visit from user's iphone and automatically adjust web page to fit iPhone screen size? 启动iPhone拨号器,但使用联系人姓名而不是号码 - Launching the iPhone dialler but with contact name instead of number 如何从地址簿联系人处获取电话号码(iphone sdk) - How to get a Phone Number from an Address Book Contact (iphone sdk) 是否可以从设置中读取iPhone电话号码? - Is it possible to read the iPhone phone number out of the settings? 如何为电话应用程序 iphone 设置联系人默认拨号器? - How to make a contact default dialer for phone app iphone? 通过iPhone上的电话号码获取姓名 - Get name given by phone number on the iPhone
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM