Detecting Wifi in ios
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Posts: 4
- Joined: Sun Dec 19, 2010 6:41 am
Detecting Wifi in ios
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
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
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
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.
Former LiveCode developer.
Now recovering.
Re: Detecting Wifi in ios
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.
Former LiveCode developer.
Now recovering.
Re: Detecting Wifi in ios
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
Gerry
14" MacBook Pro
Former LiveCode developer.
Now recovering.
Former LiveCode developer.
Now recovering.