Cordova - Checking WIFI connection to internet
问题 I use Cordova to develop a smartphone application. In this app, I need to check the internet connection before send request to a server. In order to do that I use the Cordova Connection API, but in the case that the device is connected to a WIFI network with no Internet connection, this API say that we have WIFI connection, is there any way to check if internet is available on the WIFI network ? 回答1: Send an Dummy ajax request before you send the actual request, If you get and Error Code as