Can I get a user's phone number using any of the Titanium API's?

谁说我不能喝 提交于 2019-12-11 11:22:21

问题


When a user runs my app (iOS or Android), can I automatically get their phone number and contact details for back up?


回答1:


I can't vouch for Android but for iOS the answer is a definite no. Here's what Apple will say when they reject your app:

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. You will need to revise your application to read only within your directory container and resubmit your binary to iTunes Connect in order for your application to be reconsidered for the App Store.

See Programmatically get own phone number in iOS for additional notes.



来源:https://stackoverflow.com/questions/7065911/can-i-get-a-users-phone-number-using-any-of-the-titanium-apis

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