Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any way to know what network an iPhone is connected to (LTE vs GSM)

With the release of iOS 6 and iphone 5 I'm trying to figure out how my app can know if the phone is in LTE mode vs GSM mode.

I haven't seen any updates to the Reachability API which can give whether it is connected to Wifi vs WWAN but I need to know what kind of WWAN connection it is.

Any ideas?

like image 915
brianestey Avatar asked Oct 01 '12 05:10

brianestey


2 Answers

As of iOS 7, you can find this out using the currentRadioAccessTechnology property of CTTelephonyNetworkInfo in the CoreTelephony framework.

#import <CoreTelephony/CTTelephonyNetworkInfo.h>

CTTelephonyNetworkInfo *networkInfo = [CTTelephonyNetworkInfo new];

if ([networkInfo.currentRadioAccessTechnology isEqualToString:CTRadioAccessTechnologyLTE]) {
    // ...
}
like image 124
jzzocc Avatar answered Sep 29 '22 10:09

jzzocc


For iO6 and below, you can not do this.

I have asked this question on the Apple developer forums, and Apple confirmed they do not yet have this functionality.

You can file a feature request bug. I have already done this (#12375460), but the more duplicates there are the more chance it will get implemented.

Also this is a duplicate of this question.

like image 22
Robert Avatar answered Sep 29 '22 09:09

Robert