Allow simulating no internet by turning off Wi-Fi in simulator

Originator:arshadasif0312
Number:rdar://30999908 Date Originated:13-Mar-2017 00:05 AM
Status:Duplicate/13161380/Open Resolved:
Product:iOS + SDK Product Version:
Classification: Reproducible:
 
Area:
Simulator

Summary:
To test scenarios related to no internet connectivity in the app, i have to turn off Wi-Fi or disconnect my mac's network cable.
This is quite troublesome, as i cannot check mail, or google things while debugging a no internet issue in the simulator

So i would like to raise an enhancement request for this, where turning off the Wi-Fi from Control Center in the simulator should itself be enough to simulate no internet connectivity

Steps to Reproduce:
Try turning off Wi-Fi from Control Center in simulator
Observe that the simulator isn't actually disconnected

Expected Results:
Turning off Wi-Fi in the control center of simulator should turn off internet for the simulator

Actual Results:
Turning off Wi-Fi in the control center of simulator does nothing right now

Version:
iOS 10.2

Notes:


Configuration:
iPhone 5 simulator

Attachments:

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!