Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Programmatically get own phone number in iOS

Is there any way to get own phone number by standard APIs from iPhone SDK?

like image 854
Vadim Avatar asked Oct 10 '08 22:10

Vadim


People also ask

Can iOS apps get your phone number?

No, you can't see what apps have access to your phone number by doing that. Unless "Contacts" counts as your phone number.

How do I change the prefix number on my iPhone?

If you are dialing a number that is not saved in your contacts and would like to add the prefix after typing out the number, you can do so by tapping right before the number. A cursor should appear. From there, hold down "0" and it will populate a "+" symbol add you can then add the desired prefix.

How do I add a mobile number to my Apple developer account?

Go to appleid.apple.com and sign in. In the Sign-In and Security section, click Apple ID. Enter the mobile phone number that you want to use as your Apple ID, then select Change Apple ID. A verification code is sent to you at that number.


1 Answers

At the risk of getting negative marks, I want to suggest that the highest ranking solution (currently the first response) violates the latest SDK Agreement as of Nov 5, 2009. Our application was just rejected for using it. Here's the response from Apple:

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

This was a real disappointment since we wanted to spare the user having to enter their own phone number.

like image 84
Dylan Avatar answered Oct 11 '22 19:10

Dylan