This plugin set / gets the Mobile data state.
This Plugin Requires https://github.com/Whebcraft/System_api.git
cordova plugin add https://github.com/Whebcraft/Cordova-Mobile-Data.git
cordova.plugins.MobileData.enable(function(data) {
data.enabled === true // enabled
}, function(error) {
// Error
});
cordova.plugins.MobileData.disable(function(data) {
data.enabled === false // disabled
}, function(error) {
// Error
});
cordova.plugins.MobileData.toggle(function(data) {
console.log(data.enabled);
}, function(error) {
// Error
});
cordova.plugins.MobileData.check(function() {
console.log(data.enabled);
}, function(error) {
// Error
});