Isuru-Nanayakkara / Reach

A simple class to check for internet connection availability in Swift.
MIT License
456 stars 119 forks source link

IPV6 Apple rejection #23

Open ojoaomorais opened 7 years ago

ojoaomorais commented 7 years ago

Hi, i have some issues with Apple using this Framework. Apple says that my application is crashing when in IPV6 netowrk. Im using Reach framework and all works fine but Apple says no. Please if someone could help me.

MaikeMLW commented 5 years ago

According to Apple's documentation

Many apps incorrectly use these APIs to proactively check for an Internet connection by calling the SCNetworkReachabilityCreateWithAddress method and passing it an IPv4 address of 0.0.0.0, which indicates that there is a router on the network. However, the presence of a router doesn’t guarantee that an Internet connection exists. In general, avoid preflighting network reachability. Just try to make a connection and gracefully handle failures. If you must check for network availability, avoid calling the SCNetworkReachabilityCreateWithAddress method.

That would seem to be the problem here.