user1011291
user1011291

Reputation: 109

how to get IMSI number programmatically in iPhone

I am trying to get the IMSI number in iPhone by programming. Can anyone tell me how to do this ?

Upvotes: 2

Views: 12457

Answers (2)

h--n
h--n

Reputation: 6023

Surprised this question still doesn't have an answer. There is no way to get IMSI on iOS. Apple does not allow that due to security reasons.

And IMSI is different than IMEI. IMSI is an identifier to SIM card and IMEI is an identifier to the phone.

Upvotes: 2

Wolverine
Wolverine

Reputation: 4329

For Your Information.. you can obtain IMEI using private frameworks -See this Question but may be your app will be rejected from app store then.

If you want to obtain some device identifier to use in your application you must use uniqueIdentifier property defined in UIDevice class - it is there for exactly that purpose.

NSString* uniqueID = [UIDevice currentDevice].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.

Upvotes: 0

Related Questions