4G not recognized by Reachability

361 Views Asked by At

I'm using Reachability.swift from Ashley Mills (https://github.com/ashleymills/Reachability.swift). I use the following code to request the current network status:

do {
    reachability = try Reachability.reachabilityForInternetConnection()
} catch {
    print("Unable to create Reachability")
}

if reachability != nil {
    networkStatus = reachability!.currentReachabilityStatus
    print(networkStatus.description)
}

When running on a iPhone6 (no simulator) with 4G turned on, the network status is "No Connection" instead of "Cellular".

Can someone tell me what I am missing? Why is this not working correctly?

0

There are 0 best solutions below