Ionic cordova network strength

Hello, im developing a position(GPS) based report online and offline app, i have add pictures and obtain latitude and longitude, but if it is offline, i should store that data inside an SQLITE table.

The problem is that when im asking the app to verify for the network state with the next code, it says the network is 4G, the PROBLEM is that even when the service is turn it off by the communication company, meaning that i CANT EVEN USE GOOGLE, the connection type also says im using 4G, I NEED THAT IT SAYS THAT IT IS OFFLINE :frowning:

function checkConnection() {
var networkState = navigator.connection.type;

  var states = {};
  states[Connection.UNKNOWN]  = 'Unknown connection';
  states[Connection.ETHERNET] = 'Ethernet connection';
  states[Connection.WIFI]     = 'WiFi connection';
  states[Connection.CELL_2G]  = 'Cell 2G connection';
  states[Connection.CELL_3G]  = 'Cell 3G connection';
  states[Connection.CELL_4G]  = 'Cell 4G connection';
  states[Connection.CELL]     = 'Cell generic connection';
  states[Connection.NONE]     = 'No network connection';

  alert('Connection type: ' + states[networkState]);