简体   繁体   English

我可以使用任何 Titanium API 获取用户的电话号码吗?

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

When a user runs my app (iOS or Android), can I automatically get their phone number and contact details for back up?当用户运行我的应用程序(iOS 或 Android)时,我可以自动获取他们的电话号码和联系方式以进行备份吗?

I can't vouch for Android but for iOS the answer is a definite no .我不能保证 Android 但对于 iOS 答案是肯定 Here's what Apple will say when they reject your app:以下是 Apple 在拒绝您的应用时会说的内容:

For security reasons, iPhone OS restricts an application (including its preferences and data) to a unique location in the file system.出于安全原因,iPhone OS 将应用程序(包括其首选项和数据)限制在文件系统中的唯一位置。 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.您需要修改您的应用程序,使其仅在您的目录容器中读取,然后将您的二进制文件重新提交到 iTunes Connect,以便重新考虑您的应用程序是否可以在 App Store 中使用。

See Programmatically get own phone number in iOS for additional notes.有关其他说明,请参阅iOS 中以编程方式获取自己的电话号码

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM