Added auto reconnect for iOS prototype