You're defining baseURL
as @""
. The reachability block checks for changes in the reachability of the baseURL
. You need to define a URL for the reachability system to check, by setting baseURL
to an actual URL.
Note this code near the beginning of -[AFHTTPClient startMonitoringNetworkReachability]
:
if (!self.baseURL) {
return;
}
Your reachability monitoring is never started because a base URL isn't set.