Get Mobile Number from iPhone

╄→尐↘猪︶ㄣ 提交于 2019-12-11 08:54:01

问题


Am I able to get the user's mobile number of the iPhone device? (of cause without asking the user for this information)


回答1:


No. Apple's APIs do not provide access to this information. What's more, attempting to get this information without asking the user is generally considered a huge breach of privacy.




回答2:


You could try to look it up in the address book if you know who the user is. Otherwise, yeah, the easiest thing to do is ask the user to enter it and store it as a preference.



来源:https://stackoverflow.com/questions/4129966/get-mobile-number-from-iphone

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!