5 ms·
Show HN: Simple iOS Online/Offline Switch for Development
- awolf 15y agoIs turning on and off wifi really that big of a pain point?
- derwildemomo 15y agoIn fact yes. At least for stuff I do I consider it necessary to test almost all eventualities when it comes to online/offline behavior. This makes me have to switch between airplane and online a lot of times, and it is simply a matter of time. So I built this to avoid having to toggle on/off airplane mode all the time.
- awolf 15y agoI just use the iOS simulator and switch on and off my Mac's wifi.
- derwildemomo 15y agoI'm streaming my music mostly, so that's a no-go for me, but of course a perfect solution if it works for you.
- ryanpetrich 15y agoIt would be much more useful if it failed NSURLConnections that are already live—that's the failure case that's difficult to test.
- derwildemomo 15y agoYes, and it's unfortunately not caught in a reproducible ( does that word exist? ) manner by the existing tools like the connection conditioner. I'll look into it, I thought about extending this project and add some categories to widely used libraries like ASIHTTPRequest, CocoaAsyncSockets and NSURLConnection. Would be superuseful I suppose..
- ka010 15y agoI can definitely see this come in handy, nice stuff :)
- conradev 15y agoWasn't there something that could simulate a 3G connection? Or was that not for iOS?
- derwildemomo 15y agothere are a few tools that can do that, like the Network Conditioner that comes with the developer tools or something like the Charles Proxy, but the special purpose of this little project is to fake the Reachability Information provided by the Device into completely offline, which is a bit different.
- barumrho 15y agoIf you have wired connection, you can setup wifi sharing and turn it on and off. This way you can simulate slow connection as well. (Using http://mschrag.github.com/ http://mschrag.github.com/)
- derwildemomo 15y agothis is interesting. haven't thought about that. thanks!!
- namank 15y agoI appreciate the licensing. It agrees with me. A sneak preview: ===================================== DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE Version 2, December 2004 Copyright (C) 2004 Sam Hocevar <sam@hocevar.net> Everyone is permitted to copy and distribute verbatim or modified copies of this license document, and changing it is allowed as long as the name is changed. DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. You just DO WHAT THE FUCK YOU WANT TO.
- derwildemomo 15y agowell, i'm afraid it's incompatible with the GPL though :-D