Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Finding IMEI number using Objective-C [duplicate]

I need to find a way to get the IMEI number of an iPhone device. This question is not a duplicate.

I have gone through several forums including SO, and had no luck finding an answer.

Some say Apple doesn't allow developers to see the IMEI number (SO post), and some say to use UDID instead (SO post). Some say that UDID is deprecated (in iOS 7).

I need to know the following:

1.) Does Apple permit developers to retrieve the IMEI number of the device?

2.) How can i programatically do it?

3.) In case if Apple doesn't allow developers to gather the IMEI number, do they provide any other unique number for the device?

4.) Some suggest to use Telephony framework. If i do so, will apple reject my application?

like image 672
Sharon Watinsan Avatar asked Nov 12 '13 10:11

Sharon Watinsan


People also ask

How do I get my IMEI number from Objective C?

You can save UUID in keychain and user it as unique number. It won't change until user will reset iOS. Show activity on this post. If you want to obtain the IMEI there is no way (on a non-jailbroken device).

How can I get my iPhone IMEI number from programmatically?

You can't get IMEI number of iPhone. It is against security policy of Apple. Apple may reject your app.

How do I find my iPhone IMEI number?

Go to Settings > General and tap About. Look for the serial number. You might need to scroll down to find the IMEI/MEID and ICCID. To paste this information into Apple registration or support forms, touch and hold the number to copy.


1 Answers

Apple does not allow you to identify a device any more.

UDID, MAC address and all other device identifiers are no longer accessible or allowed by Apple.

Apple suggest that you use either UUID (which you will need to store your self or), identifierForVendor or advertisingIdentifier.

Apple is now also rejecting app that use the advertisingIdentifier and not showing any advertisements apps.

Any means to get the IMEI number are using private methods, which is also not allowed by Apple anymore. And your mobile app might/will get rejected because of this.

like image 143
rckoenes Avatar answered Sep 25 '22 04:09

rckoenes