How to check iPhone network type GSM or CDMA
Asked Answered
G

2

6

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.

Greenockite answered 18/2, 2011 at 12:54 Comment(3)
You make me curious, why do you need this information?Rosaliarosalie
I have specific server side logic, also I need it for statistic.Greenockite
If CoreTelephony.framework doesn't provide such an API, I doubt if there's an AppStore-compatible way of doing this.Tantra
C
1

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

Cuculiform answered 3/11, 2011 at 6:56 Comment(0)
C
1

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

Coda answered 16/1, 2012 at 14:43 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.