iPhone/iPad unique identifier BESIDES UUID/UDID?

后端 未结 6 2059
醉话见心
醉话见心 2020-12-14 04:08

The project I am on is requesting two (or even three) unique identifiers from the iPhone or iPad. I know, I know... the UDID should be enough but we are trying to see if th

6条回答
  •  不知归路
    2020-12-14 04:36

    You can get the ICCID and the IMSI (if they exist).

    NSString *commcenter = @"/private/var/wireless/Library/Preferences/com.apple.commcenter.plist";
    NSDictionary *dict = [NSDictionary dictionaryWithContentsOfFile:commcenter];
    NSString *ICCID = [dict valueForKey:@"ICCID"];
    NSString *IMSI = [dict valueForKey:@"IMSI"];
    

    I think that's as far as you will get. I don't know any other options for getting an universal ID.

    UPDATE 2013-03-13: This has probably changed since I wrote this answer almost two years ago. I don't even remember what was the iOS version at the moment. Also as @joshis correctly pointed out in the comments "You cannot legally do this, since your app would read stuff from outside the application sandbox and therefore, it will be rejected, as specified in AppStore Review Guidelines...".

提交回复
热议问题