Discussion:
iOS: am I connected?
Bernd Fröhlich
2016-09-02 07:38:24 UTC
Permalink
I am writing an iOS App that needs to transmit data over the internet to a server.
Everything works fine so far.
However I don´t want to try to send data when the iPhone has no internet connection.
Is there a possibiltiy to test for a connection without trying to send data and handling the error?

Something like:

if connected = true then
SendMyData
else
//Do nothing
end if

Any ideas?

Greetings from Germany,
Bernd Fröhlich

_______________________________________________
Unsubscribe by sending a message to:
<nug-***@lists.xojo.com>

List Help: <***@xojo.com>

Loading...