apache / cordova-plugin-network-information

Apache Cordova Network Information Plugin
https://cordova.apache.org/
Apache License 2.0
464 stars 321 forks source link

new ios (7.1+) show cellular even on wi-fi. Updated CDVReachability from... #18

Closed romanmandryk closed 9 years ago

romanmandryk commented 10 years ago

new ios (7.1+) show cellular even on wi-fi. Updated CDVReachability from 2.2 to 3.5

romanmandryk commented 10 years ago

Solution taken from http://www.railodeveloper.com/post.cfm/phonegap-detecting-correct-connection-type-on-ios-7-1-ipad

shazron commented 10 years ago

Filed https://issues.apache.org/jira/browse/CB-7555

shazron commented 10 years ago

Linker errors:

  "_OBJC_CLASS_$_CDVReachability", referenced from:

  "_kReachabilityChangedNotification", referenced from:

clang: error: linker command failed with exit code 1 (use -v to see invocation)

Looking at your changes, you clobbered:

NSString *kReachabilityChangedNotification = @"kNetworkReachabilityChangedNotification";

in CDVReachability.m. I confirmed by looking at Apple's Reachability.m source: https://developer.apple.com/library/ios/samplecode/Reachability/Listings/Reachability_Reachability_m.html#//apple_ref/doc/uid/DTS40007324-Reachability_Reachability_m-DontLinkElementID_8