cordova.network-information

Connection The connection object, exposed via navigator.connection, provides information about the device’s cellular and wifi connection. Properties connection.type Constants Connection.UNKNOWN Connection.ETHERNET Connection.WIFI Connection.CELL_2G Connection.CELL_3G Connection.CELL_4G Connection.CELL Connection.NONE connection.type This property offers a fast way to determine the device’s network connection state, and type of connection. Quick Example checkConnection = function () { var networkState = navigator.connection.type; var states […]

Read More