Page 1 of 1

Detecting Wifi in ios

Posted: Sun Dec 19, 2010 6:45 am
by rdlankes@iis.syr.edu
I'm working on an iPad app...is there a quick way to determine if the iPad has a valid Internet connection? That way I can disable certain user interface options if they are not connected.

Re: Detecting Wifi in ios

Posted: Wed Mar 30, 2011 2:00 pm
by reelstuff
Interesting I would be interested in learning about this also, I know in Xcode you have to develop logic to support the absence of a connection, not sure how it would work for the engine.
I have an app that will connect to a server, and display content, however if there is no connection, then default content is displayed instead of live content.

I have the same need in a desktop app, so I will be posting that later, do let us know if you find a work around on this

Re: Detecting Wifi in ios

Posted: Sat Apr 02, 2011 11:21 am
by Jellicle
4.6 has support for detecting Internet connectivity - check out the release notes. It may not do exactly what you need, but some combination of tests might get you close.

Re: Detecting Wifi in ios

Posted: Wed Apr 06, 2011 9:21 am
by Jellicle
I've got a support request in, but in the meantime I'm simply reading a url and if the result is empty, I'm assuming there is no connection of any kind.

Re: Detecting Wifi in ios

Posted: Wed Apr 06, 2011 12:08 pm
by Jellicle
The internet connectivity stuff in 4.6 seems to work, now that I've stopped monitoring a URL and started monitoring a hostname, as suggested by support. Follow the instructions in the release notes, but...yeah...use a hostname. Doh.

Gerry