How to check if the device is LTE, 3G, HSPA or Wi-Fi?

Is it possible to determine which network is on the device when a user interacts with my application?

Now I have a Reachability class and I can distinguish between Wi-Fi and Cellular, but how to check if Cellular LTE, 3G, HSPA, EDGE?

+5
source share
2 answers

There is currently no way to distinguish between different types of cellular networks.

See this question for more information.

0
source

As in iOS7, cellular connection information is available using CTTelephonyNetworkInfo ():

let info = CTTelephonyNetworkInfo()
print("carrierName": " + "\(info.subscriberCellularProvider?.carrierName ?? "Has not been configured for carrier")")
print("currentRadioAccessTechnology: " + "\(info.currentRadioAccessTechnology ?? "Airplane Mode/No cell connection")")

currentRadioAccessTechnology will display a string describing the type of connection.

0

All Articles