CB-12751: (ios) Fix connection type when airplane mode is on

This closes #54
This commit is contained in:
Connor Pearson 2017-01-18 10:21:46 -05:00 committed by Julio César
parent 7f5d03e699
commit 2fd3c1cc43

View File

@ -88,8 +88,14 @@
}
}
case ReachableViaWiFi:
return @"wifi";
{
BOOL isConnectionRequired = [reachability connectionRequired];
if (isConnectionRequired) {
return @"none";
} else {
return @"wifi";
}
}
default:
return @"unknown";
}