我可以使用任何的钛API的一个用户的电话号码? [英] Can I get a user's phone number using any of the Titanium API's?

查看:194
本文介绍了我可以使用任何的钛API的一个用户的电话号码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当用户运行我的应用程序(iOS或Android),我可以自动获取他们的电话号码和联系方式的备份?

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

推荐答案

我不能保证为Android,但适用于iOS的答案是一个明确的没有即可。下面是当他们拒绝你的应用程序,苹果将说些什么:

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:

有关安全方面的原因,iPhone操作系统限制的应用程序(包括
  其preferences和数据),以在文件系统中的独特位置。
  此限制是被称为安全功能的一部分
  应用程序的沙箱。沙箱是一组细粒度的控制
  限制应用程序对文件的访问,preferences,网络
  资源,硬件,等等。

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."

该设备的电话号码是不是在你的应用程序的可用
  容器。您将需要修改你的应用程序为只读
  目录容器内,并重新提交您的二进制到iTunes
  为了连接您的应用程序重新考虑为App
  商店。

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.

请参阅Programmatically获得iPhone OS 以附加注释自己的电话号码。

See Programmatically get own phone number in iPhone OS for additional notes.

这篇关于我可以使用任何的钛API的一个用户的电话号码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆