Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I know whether my iPhone/iPad is connected to 2G or 3G? [duplicate]

I was trying to check wether the device is connected via 2G (GPRS, EDGE) or 3G (UMTS, HSDPA).

I only found the Reachability example class from here (Apple Dev Example)

This example only check wether its Wifi or WWAN. I wanna use it to decide wether I download the small data or the huge files. As it is big different between GRPS and UMTS.

Is it possible to distinguish 2G and 3G?

like image 431
Vinh Avatar asked Nov 14 '11 13:11

Vinh


1 Answers

Since you can not get this information the official way, how about taking a screenshot and make some parser / image processing for the status bar network connectivity icon. Ugly, but would work. And would be fun :)

like image 175
jimpic Avatar answered Oct 18 '22 12:10

jimpic