In our app we need to check the carrier using CTTelephonyNetworkInfo().serviceSubscriberCellularProviders
It was return correct data in XCode 14.2 and device running iOS 16.4.1
But when I switched to Xcode 14.3 with the same device, the data is missing:
Optional(["0000000100000002": CTCarrier (0x281bc9290) {
Carrier name: [--]
Mobile Country Code: [65535]
Mobile Network Code:[65535]
ISO Country Code:[--]
Allows VOIP? [YES]
}
, "0000000100000001": CTCarrier (0x281bc92c0) {
Carrier name: [--]
Mobile Country Code: [65535]
Mobile Network Code:[65535]
ISO Country Code:[--]
Allows VOIP? [YES]
}
Anyone facing the same problem, Is this a bug or newer SDK blocks this? And is there any other way I can determine the carrier?
Thanks