Search code examples
iosiphoneobjective-cipadreachability

Reachability not returning correct state


I have encountered an issue where Apple's reachability class returns an incorrect connection status, for example, it will return a connection to wifi when there is no active internet at all. It seems once the app gets into this state it can't get out unless you close it, or a new notification correctly triggers for the connection.

Has anyone had an issue like this?


Solution

  • A better solution I have found is to stopReachability and restart it before every connection. This forces it to grab the actual state and has solved all the problems