iOS Reachability to host fails 99% of the time.

I tried out the reachability example from the dev portal. When I run the app out of the box, with the internet reachability and the host reachability to www.apple.com, the host reachability (www.apple.com) is always unreachable once the wifi is turned on and off. I have seen it successfuly work once.. what am I missing?



2017-01-10 13:49:26.673 Reachability[45312:3958655] Reachability Flag Status: -R ------- networkStatusForFlags <- For Interenet

2017-01-10 13:49:29.910 Reachability[45312:3958655] Reachability Flag Status: -- ------- networkStatusForFlags <- For www.apple.com

Replies

… the host reachability (www.apple.com) is always unreachable once the wifi is turned on and off.

Are you testing this on a device with WWAN?

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"