What does the connectionRequired variable mean in the Reachability.h class that Apple wrote? In plain English?
//WWAN may be available, but not active until a connection has been established.
//WiFi may require a connection for VPN on Demand.
- (BOOL) connectionRequired;
Does it mean:
--you could connect, but you haven't connected? --you need a password --you need VPN
When do I need to check to see if this variable is true?
This means that the cellphone has an available internet connection but is configured to tunnel the connection through a VPN and cannot connect to the VPN server. Phones configured this way are often company phones and it is done to allow access to intranet's and tracking phone activity etc.
Ideally you should always check this when you check for internet connectivity as the phone will not be able to fetch any data until the VPN server is available again unless the owner switches it off in Settings.