Re: SCNetworkReachability giving nonsensical results in iOS Simulator
Re: SCNetworkReachability giving nonsensical results in iOS Simulator
- Subject: Re: SCNetworkReachability giving nonsensical results in iOS Simulator
- From: Jens Alfke <email@hidden>
- Date: Tue, 28 Apr 2015 15:19:59 -0700
> On Apr 28, 2015, at 2:49 PM, Jens Alfke <email@hidden> wrote:
>
> I haven’t yet had a chance to try this with a real device.
It seems to work correctly on a real device (iPhone 6+, iOS 8.3) although I can’t see the reachability changes in real time since I have to suspend the app to go to Settings to toggle Airplane Mode. But as expected, after I go offline and return to the app the reachability flags change to 0, and when I go back online they change to 2.
In a Mac app it works too; when I disable WiFi the state goes to 7 not 0, which is a little weird because I don't have a VPN configured, but my code interprets 7 as being offline so it doesn’t cause problems.
Should I file a Radar about the incorrect flags in the simulator?
—Jens
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden