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?
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).
You can't get IMEI number of iPhone. It is against security policy of Apple. Apple may reject your app.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With