On Fri, Dec 12, 2008 at 3:00 PM, markdionne <[email protected]> wrote:
>
> I'm walking down the street and my AJAX-based iPhone app is working
> just fine via the Edge network. I stop in front of Starbucks for a
> minute, and the Edge indicator changes to the WIFI indicator. All my
> AJAX calls stop working.
>
> What's happening is that the WIFI seems to be there, but I am not
> logged in. (I don't get the popup asking if I want to use the WIFI. I
> guess I once said it was OK.) This probably happens at many
> subscription-based WIFI sites.

Yeah.  In general I keep the wifi off (for battery reasons also) but
Apple is favoring a Wifi connection to the EDGE or 3G networks.  This
is also a pain when there is a weak WIFI signal.

Michael


>
> The annoying thing is that in this case the XMLHttpRequest just
> returns a readyState of 1 and nothing more. If I put the phone in
> Airplane Mode, then I get ReadyState 4 with a status of 0, and I can
> tell the user the network is not available. To fix this problem, I
> will need to add some timeout logic.
>
> (If I visit some web page, I get redirected to secure.sbc.com and I
> can log in for free for 24 hours at that location. Then the WIFI will
> work just fine. But it's easier just to turn off the WIFI and use
> Edge. Unless you have an iPod Touch, this free WIFI seems like nothing
> but a pain unless you need big bandwidth.)
>
> This behavior affects other apps as well. Anything that needs web
> access will just fail mysteriously: NY Times, Bloomberg, Sports pages
> etc.
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"iPhoneWebDev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/iphonewebdev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to