GitToTheHub commented on code in PR #169:
URL: 
https://github.com/apache/cordova-plugin-network-information/pull/169#discussion_r3015394560


##########
src/ios/CDVConnection.m:
##########
@@ -151,8 +165,16 @@ - (void)pluginInitialize
     [self.internetReach startNotifier];
     [[NSNotificationCenter defaultCenter] addObserver:self 
selector:@selector(updateConnectionType:)
                                                  
name:kReachabilityChangedNotification object:nil];
-    [[NSNotificationCenter defaultCenter] addObserver:self 
selector:@selector(updateConnectionType:)
-                                                 
name:CTRadioAccessTechnologyDidChangeNotification object:nil];
+    if (@available(iOS 12.0, *)) {
+        [[NSNotificationCenter defaultCenter] addObserver:self 
selector:@selector(updateConnectionType:)
+                                                     
name:CTServiceRadioAccessTechnologyDidChangeNotification object:nil];
+    } else {
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
+        [[NSNotificationCenter defaultCenter] addObserver:self 
selector:@selector(updateConnectionType:)
+                                                     
name:CTRadioAccessTechnologyDidChangeNotification object:nil];
+#pragma clang diagnostic pop

Review Comment:
   Won't fix



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to