Check supla-client socket implementation (error checking). Check if iOS app can be notified on network changes/airplane mode etc.