iOS reachability that pings to check the real network, not just the local connection
open sourceMITfree
RealReachability is an iOS library that reports whether the network is really reachable, not just whether the device has a local connection. It combines Apple's SCNetworkReachability API with a ping module and a finite state machine, so the app is only told when the status actually changes, and it can double-check against a second host you choose. Its ping helper and local-connection observer can also be used on their own. Its maker now calls it legacy and asks users to move to RealReachability2.
Problems it solves
- tell whether my iOS app can really reach the internet, not just whether Wi-Fi is on
- get notified when network reachability actually changes in an iOS app
- ping a host from an iOS app
Features
- checks real reachability with ping as well as SCNetworkReachability
- finite state machine that only reports actual status changes
- configurable hosts for ping and a double-check
- ping helper and local-connection observer usable on their own
- installs with CocoaPods or Carthage
Limitations
- Its maker calls this repository legacy and no longer actively maintained, and asks users to migrate to RealReachability2.1
Alternatives
The same job
These do what RealReachability does.
- RealReachability2 A network reachability library for iOS that checks real internet connectivity
