I am working on iOS Swift 3 project i need to check internet connectivity for any network and display alert if internet is not available.Could Someone help me.Thanks in Advance.
            Asked
            
        
        
            Active
            
        
            Viewed 186 times
        
    1
            
            
         
    
    
        anuj
        
- 261
- 5
- 15
- 
                    @JonSnow i need to check for any network could u post ur answer – anuj Oct 06 '17 at 05:59
- 
                    For more you can read https://stackoverflow.com/questions/46482545/swift-how-to-check-if-my-app-has-wlan-permission-and-the-device-is-connected-to#46482656 – iPatel Oct 06 '17 at 06:00
- 
                    You can use reachability library, to identify the network changes https://github.com/tonymillion/Reachability – Suresh Kumar Durairaj Oct 06 '17 at 06:01
- 
                    @Suresh could u post the answer – anuj Oct 06 '17 at 06:03
- 
                    @anuj if you using Alamofire then check this short snippet https://stackoverflow.com/questions/30743408/check-for-internet-connection-with-swift/46562290#46562290 – Jack Oct 06 '17 at 06:11
- 
                    @Jack i m not using Alamofire – anuj Oct 06 '17 at 06:16