Menu

Your app works on office Wi-Fi. Here's how to test it on a bad network from your Mac.
πŸ“°

Your app works on office Wi-Fi. Here's how to test it on a bad network from your Mac.

DEV Community: iosΒ·MinPin ProxyΒ·about 13 hours ago
#HAeWlA5F
#devtoios#devto#dev#network#loss
Reading 0:00
15s threshold

Most networking bugs never show up at a desk. Office Wi-Fi answers in 10 ms, nothing drops, and every request finishes before you can tap twice. Then someone opens the app on a train and the spinner never stops, or the order goes through twice.

You don't need extra hardware to reproduce that. Everything below is free and runs on a Mac.

The tools

macOS: Network Link Conditioner. It ships in "Additional Tools for Xcode" (download it from the Apple Developer site, then open the Hardware folder). It installs a settings pane with profiles like 3G, Edge, Very Bad Network and 100% Loss, and you can make your own with bandwidth, delay, packet loss and DNS delay. It throttles the whole Mac, so the iOS Simulator and anything else on the Mac get it too. Remember to switch it off afterwards.

A real iPhone. Settings β†’ Developer β†’ Network Link Conditioner, with the same profiles. The Developer menu shows up once the phone has been used with Xcode and Developer Mode is on.

Android emulator.…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.