ios: got check-for-internet-connection working