Reachability.swift icon indicating copy to clipboard operation
Reachability.swift copied to clipboard

Simpler Usage didn't work on Wifi or Cellular with no internet access

Open thihaaung6245 opened this issue 9 years ago • 3 comments

I use this simpler usage for my whole project reachability.But,I do have some problem which is its output "connected" when i connect to cellular data or wifi which got no internet access.

Any help to make it improve?

let reachability = try? Reachability.reachabilityForInternetConnection()
if reachability == nil || reachability!.currentReachabilityStatus == .NotReachable {
    print("not connected")
} else {
    print("connected")
}

thihaaung6245 avatar May 19 '16 08:05 thihaaung6245

I think this question should be answered....Any Help please?This is not simple general question. It was more than it.

thihaaung6245 avatar May 29 '16 19:05 thihaaung6245

same problem here. I setup reachability with my own server but it says connected when the device is inside a portal network without internet access self.reachability = try! Reachability(hostname: URLs.sharedInstance.hostName)

ogezue avatar Jun 17 '16 16:06 ogezue

Me too! Should have solution for connected wifi without internet connection.

dqhieu avatar May 07 '17 02:05 dqhieu