Getting null values for MCC and MNC in iOS 14.7 above

CTTelephonyNetworkInfo *fetchnetworkInfo = [[CTTelephonyNetworkInfo alloc] init];

    NSDictionary<NSString *, CTCarrier *> *providers= [fetchnetworkInfo serviceSubscriberCellularProviders];

CTCarrier *carrier = providers.allValues.firstObject;
   isoCountryCode = carrier.isoCountryCode;
   mobileNetworkCode = carrier.mobileNetworkCode;
    mobileCountryCode = carrier.mobileCountryCode;

but for iOS 14.7 above I’m getting null values for MNC And MCC please suggest

any solution please.

This topic was automatically closed after 166 days. New replies are no longer allowed.