Is there a way to check if the phone is connected to the internet?
Printable View
Is there a way to check if the phone is connected to the internet?
You could try to get some data from the internet with the GET object, and see if it receives anything?
Yes I guess could.. but I was expecting to see a Is Connected condition somewhere. Having to use the Get object in that way doesn't seem like an optimal way :)
But thanks for the answer, I guess I'll have to use this method then.
Just GET google.com or something you know will always be up, and if it returns "" then you're offline, otherwise you're on!
The problem with this solution is that I believe the app is hanging while Pending for a result, meaning I cannot test to check if it retrieved something, if it is still searching for it. Am I right here? I am not able to test on a real device yet because the Apple registration site seems to have technical difficulties..