Can I prevent iPhone from using 3G under any circumstances?

Posted by dageshi on Stack Overflow See other posts from Stack Overflow or by dageshi
Published on 2010-06-11T14:05:51Z Indexed on 2010/06/11 14:12 UTC
Read the original article Hit count: 226

Filed under:
|
|
|

I'm writing a travel guide related app that will download large databases (60meg) potentially overseas, with the reachability code I can tell when a host is reachable via wifi or 3g BUT I'm worried that if for some reason the wifi connection breaks for a minute or so as some DSL connections are likely to do on occasion the iphone will switch transparently to 3G and without realising I could be racking up someones phone bill with overseas data charges!

So I'm wondering if anyone has any experience, in the event of such break in wifi connectivity (wifi still works but it's connection to the net is down) would the reachability code report ReachableViaWWAN? So I could wait till my download code returns, check how the host is currently reachable and if it's via 3g I could abort?

Is it possible to select what type of connection I can use aka 3g or wifi exclusively?

© Stack Overflow or respective owner

Related posts about iphone

Related posts about wifi