0

Possible Duplicate:
How does Square's CardCase App Do This?

Is this forbidden? Square's iPhone App CardCase seems to be doing this when you create an account. It prefills fields with your email address, photo, and name from the iPhone's address book.

If not forbidden, how does one accomplish it?

Edit: I suspect they are doing this:

Programmatically get own phone number in iOS

and then looking for the phone number in the address book.

Community
  • 1
  • 1
Genericrich
  • 4,611
  • 5
  • 36
  • 55
  • I know you posted this 4 years ago but any help regarding it would be great! I need to access the information of my app's user and pre fill it in a form to help address some shipping methodology. Any help would be great. Thank you in advance :) – Mohsin Khubaib Ahmed May 12 '15 at 15:20

2 Answers2

0

Getting Address Book information is not prohibited, in fact, there is a framework dedicated to the Address Book. See ABAddressBook Class Reference. Also, there are a ton of examples on the net that demonstrate how to access the address book, getting entries as well as adding entries.

WrightsCS
  • 50,551
  • 22
  • 134
  • 186
  • 4
    The question is how do they get MY information from the iOS address book. This is forbidden as far as I can tell. – Genericrich Nov 07 '11 at 00:58
0

There are several questionable methods for obtaining the current user's name or email which you could then use to look up their full contact details. However, these run you the risk of getting rejected by Apple. Instead, I would recommend asking for something simple (like phone number) to start off with and using that entered information to try to helpfully autofill the rest. Or assuming you are creating accounts for the user you could use Facebook, Twitter, Google and/or some other 3rd party authentication system instead of requiring all of their details again for your specific app.

David Brainer
  • 6,223
  • 3
  • 18
  • 16