Access user's phone number on iOS 7

北城以北 提交于 2019-12-12 20:12:22

问题


I know that iOS 4 and 5 do not allow the access of a user's phone number since its outside the sandbox of an application (if it needs to be accepted by apple). I would like to know whether this has changed in iOS 7 - with permissions whether it can be accessed etc.

Thanks in advance.


回答1:


No. Apple 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:


"For security reasons, iPhone OS restricts an application (including its preferences and data) to a unique location in the file system. This restriction is part of the security feature known as the application's "sandbox." The sandbox is a set of fine-grained controls limiting an application's access to files, preferences, network resources, hardware, and so on."

The device's phone number is not available within your application's container.

please find apple response in this link apple response

i found some thing interesting here this

thanks



来源:https://stackoverflow.com/questions/20259896/access-users-phone-number-on-ios-7

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