• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: SCNetworkReachability giving nonsensical results in iOS Simulator
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >SCNetworkReachability giving nonsensical results in iOS Simulator (From: Jens Alfke <email@hidden>)

  • Prev by Date: SCNetworkReachability giving nonsensical results in iOS Simulator
  • Next by Date: Re: SCNetworkReachability giving nonsensical results in iOS Simulator
  • Previous by thread: SCNetworkReachability giving nonsensical results in iOS Simulator
  • Next by thread: Re: SCNetworkReachability giving nonsensical results in iOS Simulator
  • Index(es):
    • Date
    • Thread