I would like to detect if the user has a SIM in their device.
There are similar questions (for example: iPhone - Detecting SIM card availability), but the suggested solutions rely on the Core Telephony framework which is now mostly deprecated.
I thought canSendText
of MFMessageComposeViewController
might work, but it also returns true
for devices without SIM card. Probably because the user doesn't need a SIM card to use iMessage?
Does anyone know of other possibilities?