Thus, you can get the code of the mobile network, the code of the country of mobile communication. From these values โโyou can indicate which sim name it is.
CTTelephonyNetworkInfo* info = [[CTTelephonyNetworkInfo alloc] init]; CTCarrier* carrier = info.subscriberCellularProvider; NSString *mobileCountryCode = carrier.mobileCountryCode; NSString *carrierName = carrier.carrierName; NSString *isoCountryCode = carrier.isoCountryCode; NSString *mobileNetworkCode = carrier.mobileNetworkCode;
and you can make a web service for this to indicate which network operator name this parameter belongs to. these parameters can be uniquely determined from this wikipedia .
for example, my country code is "410", my operator network is "06", and it correctly identifies my operator name.
I am also stuck in the same problem and now decided
source share