Get users number from iPhone using HTML5/jQuery

前端 未结 3 1342
广开言路
广开言路 2020-12-06 18:29

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

相关标签:
3条回答
  • 2020-12-06 18:45

    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

    0 讨论(0)
  • 2020-12-06 18:56

    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

    0 讨论(0)
  • 2020-12-06 18:56

    You could just ask the user:

    var phone_number = prompt("Please enter your phone number:");
    
    0 讨论(0)
提交回复
热议问题