Everywhere I can find the same solution to retrieve carrier information. So Im sure it works. but, For me its returning an error:
Descriptors query returned error: Error Domain=NSCocoaErrorDomain Code=4099
"The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated."
UserInfo={NSDebugDescription=The connection to service named com.apple.commcenter.coretelephony.xpc
was invalidated.}
The code that generates this error is inside unwanted message communication extension like:
let networkInfo = CTTelephonyNetworkInfo()
let carrier = networkInfo.subscriberCellularProvider
print(carrier);
As it works in the parent app but not inside the target extension, Im sure that the Extension is not allowing me to do so. If thats the case then what are my other options? It would be a roadblock if I cannot send the Carrier Name of the user along with the userInfo.