How to check iPhone network type GSM or CDMA

2020-04-05 07:11发布

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.

标签: iphone gsm cdma
2条回答
ゆ 、 Hurt°
2楼-- · 2020-04-05 07:39

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

查看更多
甜甜的少女心
3楼-- · 2020-04-05 07:41

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

查看更多
登录 后发表回答