Yohei Takeda created CB-9183:
--------------------------------

             Summary: 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: iOS
    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
  - (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;
  }




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to