-6

I am working on swift iOS health project that contains user profile with his/her personal info, I need a way to get user's personal info from the iPhone, can I get the device's mobile number and email from the medical ID or from "My Info" in contacts?

The question is not duplicated because I'm asking about iOS 9, the previous question is very old and there might be something new in the latest iOS, plus I asked if it is possible to get these info from the medical ID.

Firas
  • 1,742
  • 15
  • 25
  • Have you Googled `iOS get user's personal information from the device`? There seems to be *some* info - if not much. This doesn't seem to be something that Apple is encouraging. – Pekka May 23 '16 at 18:18
  • 2
    Possible duplicate of [Programmatically get own phone number in iOS](http://stackoverflow.com/questions/193182/programmatically-get-own-phone-number-in-ios) – ZGski May 23 '16 at 18:29

1 Answers1

2

The closest you can do to get this information is access their iCloud info via CloudKit. However, this is still limited to just their first and last name if they choose to allow your app to see it. You will not be able to obtain their email through this as Apple considers this sensitive information.

rmickeyd
  • 1,551
  • 11
  • 13