Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Any way to get the name of iPhone user?

Outside of asking the user to input their name, is there any way to get it off the device?

I tried this library, which attempts to extract the name from [UIDevice currentDevice] name], but that doesn't work in a lot of situations:

https://github.com/tiboll/TLLNameFromDevice

Is the user's name present in the phonebook or anywhere else that we have access to in iOS 6?

like image 747
Andrew Avatar asked Jun 03 '13 13:06

Andrew


1 Answers

Well you could go through all the contacts in the AddressBook and see if any of them are marked with the owner flag.

Just be aware that doing this will popup the "this app wants access to the address book" message. Also Apple isn't very keen on these kind of things. In the app review guide it is specified that an app can not use personal information without the user's permission.

like image 106
rckoenes Avatar answered Sep 22 '22 20:09

rckoenes