From b6b48e9d6ef8b45b61ec01021c4b80f0082ff05a Mon Sep 17 00:00:00 2001 From: Shazron Abdullah Date: Wed, 10 Jul 2013 17:21:50 -0700 Subject: [PATCH] [CB-2686] Update Connection reachability to 'cellular' and remove deprecation notice. --- src/ios/CDVConnection.m | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/ios/CDVConnection.m b/src/ios/CDVConnection.m index b3f5cab..3cfdc33 100644 --- a/src/ios/CDVConnection.m +++ b/src/ios/CDVConnection.m @@ -52,8 +52,7 @@ return @"none"; case ReachableViaWWAN: - // Return value of '2g' is deprecated as of 2.6.0 and will be replaced with 'cellular' in 3.0.0 - return @"2g"; + return @"cellular"; case ReachableViaWiFi: return @"wifi"; @@ -113,7 +112,6 @@ self.internetReach = [CDVReachability reachabilityForInternetConnection]; self.connectionType = [self w3cConnectionTypeFor:self.internetReach]; [self.internetReach startNotifier]; - [self printDeprecationNotice]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(updateConnectionType:) name:kReachabilityChangedNotification object:nil]; if (&UIApplicationDidEnterBackgroundNotification && &UIApplicationWillEnterForegroundNotification) { @@ -124,9 +122,4 @@ return self; } -- (void)printDeprecationNotice -{ - NSLog(@"DEPRECATION NOTICE: The Connection ReachableViaWWAN return value of '2g' is deprecated as of Cordova version 2.6.0 and will be changed to 'cellular' in a future release. "); -} - @end