After research, the code to achieve access to the iphone serial number is not available, some of the online access to the phone string is written through Third-party libraries, the use of these libraries in the App Store is not audited, so there is no way to get the number of mobile phone IMSI. Since the IMSI of the iphone is not available, and in real development we need to represent the unique logo of the iphone, so the official method is to use the handset's UUID, the phone's device number, as a sign. But another option is to use the iphone's MAC address. When using UUID, be careful to use the interface provided by the system (Uidevice), there are two methods in the Uidevice to obtain the UUID, one gets the 40-bit one is 36-bit, But the 36-bit method has been tested as if there is a bug, so temporarily can not use (see IOS SDK), listen to the Internet on the 6.1 version can be used, 6.0 is not used, indicating that this method is 6.0 of the new method. Another method under 5.0 including 5.0 can be used. eg:nsstring uuid = [[uidevice currentdevice] uniqueidentifier], which shows that this method obtains the UUID is invariant, no matter at what time. &NB Sp &NB Sp &NB Sp & nbsp There is also a 36-bit for the UUID, this method is to create a uuid, meaning that it will change, such as after the application is unloaded and reinstalled, the UUID will change. Eg:cfuuidref deviceId = cfuuidcreate (NULL); Cfstringref deviceidstringref = cfuuidcreatestring (Null,deviceid); cfrelease (deviceId); nsstring *deviceidstring = (NSString *) deviceidstringref International Mobile Subscriber Identification Code (imsi:international Mobile subscriberidentification number) is a sign that distinguishes moving users, stored in a SIM card, and can be used to differentiate valid information from mobile users. The total length is no more than 15 bits, and the same number is used for 0~9. MCC is the mobile user of the state code, accounting for 3 digits, China's MCC regulation of 460; MNC is a mobile network number, consisting of up to two digits, which is used to identify mobile communication networks belonging to mobile users; Msin is a mobile user identification code used to identify a mobile user in a mobile communication network. International Mobile User Identification Code (IMSI) International Mobile Subscriber Identity International is the only number assigned to identify a mobile user. Technically speaking, IMSI can completely solve the international roaming problem. However, since North America still has a large number of amps systems using the min number, and North America's MDN and Min with the same number, the system has been unable to change, so the current international roaming for the time being mainly min. The min resource, which starts with O and 1, is called IRM (International roaming MIN), which is represented by Ifast (International Forum on ANSI-41 Standards Technology) Unified management. Currently, the IRM resource applied by Unicom begins with 09. Can be seen, as the user's growth, used for international roaming min Resources will soon be depleted, the global unified use of IMSI logo users is imperative. The structure combination IMSI has 15 bits, its structure is as follows: Mcc+mnc+msin, (mnc+msin=nmsi) mcc:mobile Country code, mobile Country Code, MCC resources by ITU (ITU) unified allocation and management, the only identification of mobile user-owned Country, a total of 3, China for 460; Mnc:mobile Network Code, mobile network Code, a total of 2, mobile GSM system use 00, 02, China Unicom GSM system using 01, Chinese Telecom CDMA system using 03, China Mobile TD system using 07, A typical IMSI number is 460030912121001; Msin:mobile Subscriber Identification number has a total of 10 digits, the structure of which is as follows: Ef+m0m1m2m3+abcd m0m1m2m3 in MDN and H0H1H2H3 numbers can have a corresponding relationship. ABCD four bits are freely assigned. It can be seen that imsi in the Msin number before the MCC, can distinguish each user from the country, so can achieve international roaming. In the same country, if there are multiple mobile network operators, can be MNC to make the difference. Distinguished from imei:international Mobile Equipment identity (International mobile device identification)
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.