The documentation is unclear, is CTCarrier information tied to the sim card, or is it about the cell tower you are connected to. For instance, if I lived near the border of two countries and my phone switches from a cell tower in one country, to the cell tower of another country, will the country code property change?
https://developer.apple.com/documentation/coretelephony/ctcarrier
Which bit? Scott made two points:
It’s information about the SIM
You get CTCarrier
objects using CTTelephonyNetworkInfo
, and the docs for that make this very clear: It “gives you access to the CTCarrier
object, which contains information about the user’s home cellular service provider.”
There’s no public API to get the identity of the currently connected network.
This isn’t specifically documented because our documentation generally focused on what is possible rather than what isn’t [1].
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"
[1] Every now and again DTS publishes a doc like QA1944 Sending SMS Programmatically, but such questions have to be asked many times to justify it.