[ https://issues.apache.org/jira/browse/CB-9183?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Shazron Abdullah updated CB-9183: --------------------------------- Component/s: (was: iOS) Plugin Network Information > Return cellular connection type even if wifi is reachable on 64-bit iOS, > similar to CB-6350. > -------------------------------------------------------------------------------------------- > > Key: CB-9183 > URL: https://issues.apache.org/jira/browse/CB-9183 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin Network Information > Affects Versions: 3.6.3 > Environment: HardWare:iPhone6 PLUS > OS:iOS8.2 > Reporter: Yohei Takeda > > Maybe this issue is similar to CB-6350. > When we get connection type on 64-bit iOS, return value is set to cellular > event if wifi is reachable. > On 64-bit iOS, "BOOL" is now the same as "bool", and the return type of > networkStatusForFlags method cannot use this type anymore. > Using "NetworkStatus" type resolve this issue. > source on 64-bit iOS BOOL change: > http://blog.bignerdranch.com/564-bools-sharp-corners/ > CDVReachability.m L.189 > {code} > - (NetworkStatus)localWiFiStatusForFlags:(SCNetworkReachabilityFlags)flags > { > CDVPrintReachabilityFlags(flags, "localWiFiStatusForFlags"); > BOOL retVal = NotReachable; <- this line. > //NetworkStatus retVal = NotReachable; <- we implement temporary this > line. > if ((flags & kSCNetworkReachabilityFlagsReachable) && (flags & > kSCNetworkReachabilityFlagsIsDirect)) { > retVal = ReachableViaWiFi; > } > return retVal; > } > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org