Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get IMEI on iPhone?

Tags:

I want to get IMEI on iPhone. I try to use the following code:

#import "Message/NetworkController.h" NetworkController *ntc=[[NetworkController sharedInstance] autorelease]; NSString *imeistring = [ntc IMEI]; 

But NetworkController is not found.

I also find that I can get uniqueIdentifier using:

UIDevice *myDevice = [UIDevice currentDevice]; NSString *identifier = myDevice.uniqueIdentifier; 

But this cannot help me to get IMEI.

How to get IMEI on iPhone?

like image 715
Chilly Zhong Avatar asked May 05 '09 03:05

Chilly Zhong


People also ask

How do I find my iPhone IMEI?

It is not possible for you to track or locate a lost or stolen iPhone via the IMEI or serial number. Find My iPhone is the only way you can track or locate a lost or stolen iPhone: If Find My iPhone was not enabled on your iPhone before it was lost or stolen, then there is no way for you to locate it.

How do I get IMEI on iPhone with keyboard?

You can find your IMEI number by opening your dialer and typing *#06# using the keypad. From the Settings menu, the number is also found in Settings > About Device > Status. Thanks!


2 Answers

You can't get IMEI on iPhone anymore. You may have to use UDID instead. See other answers.


In the past, you could use the header file "Message/NetworkController.h" posted on ericasadun.com. http://ericasadun.com/iPhoneDocs300/_network_controller_8h-source.html (It's been removed now)

You would add the NetworkController.h file and the private framework "Message.framework" to your project, then import that header file to use the original method I found to get the imei number:

NetworkController *ntc = [NetworkController sharedInstance]; NSString *imeistring = [ntc IMEI]; 

That hack doesn't work anymore. App will be rejected by Apple.

like image 71
Chilly Zhong Avatar answered Sep 29 '22 22:09

Chilly Zhong


You can't find the IMEI programmatically on the iPhone.

like image 35
Jane Sales Avatar answered Sep 29 '22 22:09

Jane Sales