Ionic Mobile Network Information



I am building an iOS app with Ionic and I need to get some network informations like MNC and MCC,
Do you know how to ? using $cordovaNetwork ?

Thank you!


Docs are available on that link


Thank you but I don’t see how to get the mobile network code ?


Hi @Falk,

You can use this as a factory… I Just needed ONLINE and OFFLINE so I have modified code… Hope this helps

var network_status = NetworkFactory.checkConnection();

MyApp.factory(‘NetworkFactory’, [’$http’, ‘BASE_URL’, function ($http, BASE_URL) {
var NetworkFactory = {};
NetworkFactory.checkConnection = function () {
var networkState = navigator.connection.type;
var states = {};
states[Connection.UNKNOWN] = ‘online’;
states[Connection.ETHERNET] = ‘online’;
states[Connection.WIFI] = ‘online’;
states[Connection.CELL_2G] = ‘online’;
states[Connection.CELL_3G] = ‘online’;
states[Connection.CELL_4G] = ‘online’;
states[Connection.CELL] = ‘online’;
states[Connection.NONE] = ‘offline’;
return states[networkState];
return NetworkFactory;


Thank you @nagarjunbn8 nagarjunbn8 I found that plugin