且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

使用HTML5 / jQuery从iPhone获取用户号码

更新时间:2023-02-12 19:54:45

我很确定,这是不可能的。想象一下,如果任何网站只能检索每个访问者的电话号码,它将代表安全/隐私泄露。



如果您正在开发HTML5& JS PhoneGap应用程序,例如你可以使用相应的API: http:/ / /docs.phonegap.com/en/1.0.0/phonegap_contacts_contacts.md.html


Is there a method for getting the iPhone users phone number using HTML5/jQuery?

All I see is how to do this with the SDK.

EDIT:

So far the only thing I've found is on the initial install ask the user for their number and store it.

I am pretty sure, that this is not possible. Imagine the security/privacy breach it would represent if any site could just retrieve the phone number of each visitor.

If you are developing a HTML5 & JS app with PhoneGap for example you can, using the according API: http://docs.phonegap.com/en/1.0.0/phonegap_contacts_contacts.md.html