Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iPhone simulator - simulate 3G connection

Tags:

I am testing the Reachability api, but my physical device only has WiFi access, as I don't have a phone contract. My code needs to distinguish between being connected to 3G/2G or WiFi. Is it possible to simulate a 3G connection on the iPhone simulator?

Clarifications: I am using Snow Leopard. Limiting the bandwidth is not what I need. I need for the actual interface to be identified as the 3G or 2G radio, as opposed to WiFi.

like image 252
Alex Avatar asked Sep 29 '11 11:09

Alex


People also ask

How do I simulate the poor network on my iPhone?

Simulate Poor Network on iPhoneOpen the Settings app and navigate to the Developer option. Select the Network Link Conditioner under NETWORKING option. Now enable the Network Link Conditioner & choose the network profile you want, and start testing how your app works in different conditions.

Is it possible to disable the network in iOS simulator?

There are two ways to disable iOS Simulator's Internet connection: Unplug your network connection. Turn Wi-Fi off.

How do I throttle Internet speed on iPhone?

Go to Settings and tap Wi-Fi. Tap the Info button next to the Wi-Fi network that you're connected to. Turn on Low Data Mode.


2 Answers

If you are using Lion try the Network Link Conditioner

enter image description here

Nowdays there is a part in Preferences on the device (when registered as a developer device) where a "Network Link Conditioner" is available.

enter image description here

like image 52
epatel Avatar answered Sep 19 '22 16:09

epatel


You might also like Speed Limit.

Edit: I'm not sure if this will work as an identifier for 3g though. I'll update my answer after I do some tests (I'm working on exactly the same thing right now!)

like image 26
phi Avatar answered Sep 19 '22 16:09

phi