开发者

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

开发者 https://www.devze.com 2023-03-28 17:51 出处:网络
When a user runs my ap开发者_如何学Cp (iOS or Android), can I automatically get their phone number and contact details for back up?I can\'t vouch for Android but for iOS the answer is a definite no. H

When a user runs my ap开发者_如何学Cp (iOS or Android), can I automatically get their phone number and contact details for back up?


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号