6 Replies Latest reply: Dec 10, 2008 12:39 AM by d_Sun
pscheven Level 1 (0 points)
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)
  • robhedin Level 2 (355 points)
    Take a look at the UIDevice class for the uniqueIdentifier property.

    rob.
  • d_Sun Level 1 (0 points)
    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
  • suresh.rpt Level 1 (0 points)
    Does anybody found out the way to retrieve IMEI number programmatically
  • d_Sun Level 1 (0 points)
    I think it's no possibility to get it. At list there are no SDK classes that allows to get IMEI.

    <Edited by Moderator>
  • amit007 Level 1 (0 points)
    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
  • d_Sun Level 1 (0 points)
    Yes, I saw that property - it's easy to get. But getting the IMEI number is still a problem.