Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get users number from iPhone using HTML5/jQuery

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.

like image 758
Phill Pafford Avatar asked Apr 29 '10 14:04

Phill Pafford


2 Answers

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

like image 73
meo Avatar answered Sep 28 '22 10:09

meo


There is a Draft from W3C on Device API. This API will provide access (submitted to user permission) to Tasks, Contacts, Calendar, Camera, Microphone, Messaging Service, Communication Log, System Information (device information, battery level, network status, ...),... But it is not yet implmented in any browser.

Because of a big expectation, these APIs will probably be implemented very quickly in WebKit (base of iPhone and Android browsers). Mozilla is working on a draft implementation of Contact API with the Contact AddOn

like image 37
Cbe317 Avatar answered Sep 28 '22 10:09

Cbe317