2

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?

Ashley Mills
  • 50,474
  • 16
  • 129
  • 160
Leontien
  • 612
  • 5
  • 22

0 Answers0