I am trying to get the IMSI number in iPhone by programming. Can anyone tell me how to do this ?
-
have you seen this? I havent tried it yet but people says you can get the IMEI throug this https://github.com/erica/uidevice-extension – janusfidel Sep 13 '12 at 07:26
-
Yes but not showing anything in device, can you try it pls – user1011291 Sep 13 '12 at 07:27
-
maybe this [a question](http://stackoverflow.com/questions/823181/how-to-get-imei-on-iphone) help you – Scar Sep 13 '12 at 07:42
-
@Scar i tried it before but not successful:( – user1011291 Sep 13 '12 at 07:49
2 Answers
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.

- 5,903
- 4
- 31
- 32
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.
-
Thanks but i have tried it before and getting a error in message.framework dont worry apple will approve it. – user1011291 Sep 13 '12 at 08:06
-
https://github.com/erica/uidevice-extension/blob/master/UIDevice-IOKitExtensions.m you are using this one right..? – Wolverine Sep 13 '12 at 08:13
-
If you call any non-documented Apple framework your app will be rejected. – Wolverine Sep 13 '12 at 08:17
-
Have a look http://stackoverflow.com/questions/5869488/will-use-of-iokit-in-my-ios-app-get-my-app-rejected – Wolverine Sep 13 '12 at 08:18
-