[{"data":1,"prerenderedAt":204},["ShallowReactive",2],{"project-3309123":3},{"id":4,"name":5,"line":6,"line_source":7,"title":8,"url":9,"domain":10,"maker":11,"posted_at":12,"year":13,"points":14,"comments":15,"rank_in_year":16,"shown_in_year":17,"top":18,"tier":19,"category":20,"subcategory":21,"format":22,"keywords":23,"reception":28,"sentiment":29,"stance_mix":30,"scored_comments":34,"aspects":35,"strip":37,"post_text":29,"what":40,"said":77,"maker_in_thread":134,"shape":144,"grid":147,"attempts":169,"same_week":170,"maker_shows":39,"maker_hidden":197,"reader_version":198,"card":199},"3309123","FakeReachability","Simple iOS Online\u002FOffline Switch for Development","title","Show HN: Simple iOS Online\u002FOffline Switch for Development","https:\u002F\u002Fgithub.com\u002Fmoritzh\u002FFakeReachability","github.com","derwildemomo",1322951968,2011,16,13,583,1097,54,"shown","dev_tools","ios testing","library",[24,25,26,27],"ios","reachability","offline testing","nsurlconnection","quiet",null,{"positive":31,"neutral":32,"mixed":33,"critical":31},1,2,0,4,{"idea":36},{"positive":31,"critical":31},[33,33,33,33,38,33,33,31,33,39,33,39,33],5,3,{"problem":41,"audience":48,"pricing":29,"motivation":56,"time_to_build":29,"stack":60,"openness":75,"stage":76,"team_size":76},{"value":42,"source":43,"evidence":44},"Toggling wifi or airplane mode repeatedly to test online\u002Foffline app behavior is tedious","maker",[45],{"id":46,"by":11,"text":47},"3309218","In fact yes. At least for stuff I do I consider it necessary to test almost all eventualities when it comes to online\u002Foffline behavior. This makes me have to switch between…",{"value":49,"source":50,"evidence":51},"iOS developers testing online\u002Foffline behavior","inferred",[52,53],{"id":46,"by":11,"text":47},{"id":54,"by":11,"text":55},"3309388","there 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…",{"value":57,"source":43,"evidence":58},"Avoid repeatedly switching airplane mode while testing offline behavior",[59],{"id":46,"by":11,"text":47},[61,65],{"value":62,"source":50,"evidence":63},"iOS",[64],{"id":54,"by":11,"text":55},{"value":66,"source":50,"evidence":67},"Objective-C",[68,72],{"id":69,"by":70,"text":71},"3309460","ryanpetrich","It would be much more useful if it failed NSURLConnections that are already live—that's the failure case that's difficult to test.",{"id":73,"by":11,"text":74},"3309468","Yes, 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…","open_source","unknown",{"praise":78,"objections":87,"requests":95,"questions":107,"alternatives":112},[79],{"value":80,"source":81,"evidence":82},"Useful for development testing","commenter",[83],{"id":84,"by":85,"text":86},"3309254","ka010","I can definitely see this come in handy, nice stuff :)",[88],{"value":89,"source":81,"evidence":90},"Turning wifi on and off is not a real pain point",[91],{"id":92,"by":93,"text":94},"3309205","awolf","Is turning on and off wifi really that big of a pain point?",[96,100],{"value":97,"source":81,"evidence":98},"Fail already-live NSURLConnections, which is hard to test",[99],{"id":69,"by":70,"text":71},{"value":101,"source":81,"evidence":102},"Support for simulating 3G or slow connections",[103],{"id":104,"by":105,"text":106},"3309385","conradev","Wasn't there something that could simulate a 3G connection? Or was that not for iOS?",[108],{"value":109,"source":81,"evidence":110},"Does it simulate a 3G connection?",[111],{"id":104,"by":105,"text":106},[113,117,121,128],{"value":114,"source":43,"evidence":115},"Network Conditioner in Xcode developer tools",[116],{"id":54,"by":11,"text":55},{"value":118,"source":43,"evidence":119},"Charles Proxy",[120],{"id":54,"by":11,"text":55},{"value":122,"source":81,"evidence":123},"Wifi sharing with Network Link Conditioner-style tools",[124],{"id":125,"by":126,"text":127},"3309419","barumrho","If 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:\u002F\u002Fmschrag.github.com\u002F)",{"value":129,"source":81,"evidence":130},"Toggling Mac wifi while using iOS simulator",[131],{"id":132,"by":93,"text":133},"3309228","I just use the iOS simulator and switch on and off my Mac's wifi.",{"comments":135,"answered":32,"key":136},6,[137,140,143],{"id":138,"text":139},"3309445","this is interesting. haven't thought about that. thanks!!",{"id":141,"text":142},"3309493","well, i'm afraid it's incompatible with the GPL though :-D",{"id":54,"text":55},{"commenters":145,"max_depth":34,"maker_replies":135,"first_comment_mins":146,"lifespan_hours":39},7,38,[148,150,152,155,156,158,159,161,163,164,165,167,168],[125,33,33,149,126,33],"other\u002Fneutral\u002Fnone",[138,33,33,151,11,31],"commenter\u002Fneutral\u002Fnone",[153,31,33,149,154,33],"3309477","namank",[141,31,33,151,11,31],[84,32,38,157,85,33],"project\u002Fpositive\u002Fidea",[104,39,33,149,105,33],[54,39,33,160,11,31],"project\u002Fneutral\u002Fidea",[92,34,31,162,93,33],"project\u002Fcritical\u002Fidea",[46,34,33,157,11,31],[132,34,39,160,93,33],[166,34,33,160,11,31],"3309238",[69,34,39,160,70,33],[73,34,33,160,11,31],[],[171,176,181,185,189,194],{"id":172,"name":173,"points":174,"category":175},"3314679","Bastard's Book of Ruby",105,"learning_science",{"id":177,"name":178,"points":179,"category":180},"3312352","AngelSquare",97,"finance_crypto",{"id":182,"name":183,"points":184,"category":175},"3317824","Bloc",86,{"id":186,"name":187,"points":188,"category":20},"3319099","Errorception",76,{"id":190,"name":191,"points":192,"category":193},"3319500","coding.pressbin.com",51,"creative",{"id":195,"name":196,"points":192,"category":20},"3321423","LookIO",false,"v2",{"id":200,"name":5,"line":6,"ai":197,"cat":20,"year":13,"points":14,"comments":15,"rec":28,"s":29,"top":18,"kw":201,"maker":11,"domain":10,"tier":19,"attempts":33,"strip":202,"url":9,"mix":203,"praise":80,"objection":89,"sub":21},3309123,[24,25,26,27],"0000500103030",[31,32,33,31],1794036491769]