How do I obtain the iPhone International Mobile Equipment Identity programmatically?

StackOverflow https://stackoverflow.com/questions/1560113

  •  21-09-2019
  •  | 
  •  

문제

calling #*06# tells the IMEI ( International Mobile Equipment Identity ) of the device. I checked International Numbering Plans and found out that this actually is the IMEI number.

Is it possible to obtain it programmatically?

Thanks

도움이 되었습니까?

해결책

You cannot get device IMEI programmatically. However UIDevice class has "unique device identifier" property.

@property(nonatomic, readonly, retain) NSString *uniqueIdentifier

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 but cannot publically be tied to a user account. You can use it, for example, to store high scores for a game in a central server or to control access to registered products. The unique device identifier is sometimes referred to by its abbreviation UDID.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top