Apple Event: May 7th at 7 am PT

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Get iPhone serial number or IMEI programmatically

Hello.

I would like to know how to get a unique identifier of the iPhone (for example its serial number or its IMEI number) in C or Objective-C via the iPhone SDK ?

Thank you.

Patrick Schevenels

MacBook, Mac OS X (10.5.4)

Posted on Sep 16, 2008 7:06 AM

Reply
6 replies

Dec 4, 2008 4:20 AM in response to pscheven

Hello.

I would like to get iPhone serial, IMEI and phone number from code too. Is this legal at all, and if so how can I do this? I've found that there is no way to do this with SDK, am I right? The only divice info that I can get is represented in UIDevice class? May be the way to get this info throught unix syscalls exists?

Also phone number doesn't apears as the first record in address book in my case. Is there another way to get it from code?

Thanks.

d_Sun

Message was edited by: d_Sun

Dec 9, 2008 4:00 PM in response to d_Sun

Yes it may be possible to et he IMEI number...


uniqueIdentifier
A string unique to each device based on various hardware details. (read-only)

@property(nonatomic, readonly, retain) NSString *uniqueIdentifier
Discussion
A unique device identifier is a hash value composed from various hardware identifiers such as the device’s serial number. It is guaranteed to be unique for every device. You can use it, for example, to store high scores for a game in a central server or to control access to registered products.

Availability
Available in iPhone OS 2.0 and later.
Declared In
UIDevice.h......


But Can Any one tell how to get IMSI NUMber

Get iPhone serial number or IMEI programmatically

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.