In my project i want to get the serial number and IMEI number using iOS SDK, What API's we can use to get in iOS7. I went through few links where they are using IO Frameworks, If we use those Apple will reject the App. How can we got forward.
-
2I fear that you can't do that and still be approved by Apple. – mxb Jul 01 '14 at 08:29
2 Answers
Apple does not allow you the retrieve any device specific information like IMEI, UDID, Mac address, serial number, etc..
This has to do with the misuse of these identifier and the privacy of the user.

- 69,092
- 8
- 134
- 166
-
1But what if it's an Enterprise app. They should be allowed to identify devices. – Baby Groot Sep 19 '14 at 05:43
-
@Re-L May be, but the SDK is the sam and they made is almost impossible with the current SDK.\ – rckoenes Oct 07 '14 at 17:37
-
1It's ok. It seems most of the MDMs provide api's for getting UDID through device name or email id. :) – Baby Groot Oct 08 '14 at 05:29
Apple forbids retrieving such information, as this is potentially harmful to the end users. Instead they provide you with identifierForVendor:
An alphanumeric string that uniquely identifies a device to the app’s vendor. (read-only)
If you need to distinguish different apps from same vendor(on same device) you could use advertisingIdentifier, however docs clearly states it must be used only when it is in duty of ads(whether contributing install to an ad, or presenting ads in your app). Moreover I had application rejected because it was using this id, and was not declared in iTunesConnect.
An alphanumeric string unique to each device, used only for serving advertisements. (read-only)
If you still decide to go for the latter one, don't forget do add AddSupport.framework to you project settings.

- 6,235
- 3
- 46
- 55