Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to check iPhone network type GSM or CDMA

Tags:

iphone

gsm

cdma

In my application I need to check network type GSM or CDMA (for Verizon). I found CTCarrier class which contains property mobileNetworkCode, but I don't wanna hardcode value for each providers. Are there other ways to check it?

Please help.

like image 940
Altermann Avatar asked Feb 18 '11 12:02

Altermann


People also ask

Are iphones both CDMA and GSM?

If you buy the phone from Apple either paying full price or on the Apple iPhone upgrade program, it will be unlocked. You need the Xr CDMA model, which also supports GSM. It will work on CDMA, GSM and LTE.


2 Answers

You could get that through the Model#, but then again, you have to hardcode a list of Model# and compare them.

like image 66
Evils Avatar answered Oct 14 '22 23:10

Evils


Maybe you could do that by checking the IP Address of the iPhone if it is wireless connected. If once detected it would´t change unless you change the SIM ;-)

At http://www.tcpiputils.com/browse/ip-address/192.76.85.245 you get information on verizon IP space

like image 1
Tintenklecks Avatar answered Oct 14 '22 21:10

Tintenklecks