Detecting Wifi in ios

Bringing the internet highway into your project? Building FTP, HTTP, email, chat or other client solutions?

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
rdlankes@iis.syr.edu
Posts: 4
Joined: Sun Dec 19, 2010 6:41 am

Detecting Wifi in ios

Post by rdlankes@iis.syr.edu » Sun Dec 19, 2010 6:45 am

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.

reelstuff
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 254
Joined: Mon Apr 16, 2007 12:06 am
Contact:

Re: Detecting Wifi in ios

Post by reelstuff » Wed Mar 30, 2011 2:00 pm

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

Jellicle
Posts: 453
Joined: Thu Feb 24, 2011 11:07 am

Re: Detecting Wifi in ios

Post by Jellicle » Sat Apr 02, 2011 11:21 am

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.
14" MacBook Pro
Former LiveCode developer.
Now recovering.

Jellicle
Posts: 453
Joined: Thu Feb 24, 2011 11:07 am

Re: Detecting Wifi in ios

Post by Jellicle » Wed Apr 06, 2011 9:21 am

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.
14" MacBook Pro
Former LiveCode developer.
Now recovering.

Jellicle
Posts: 453
Joined: Thu Feb 24, 2011 11:07 am

Re: Detecting Wifi in ios

Post by Jellicle » Wed Apr 06, 2011 12:08 pm

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
14" MacBook Pro
Former LiveCode developer.
Now recovering.

Post Reply