Is there any way to know what network an iPhone is connected to (LTE vs GSM)
-
11-12-2019 - |
Question
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?
Solution
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.
OTHER TIPS
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]) {
// ...
}