Wireless Network Information

Cordova Wireless Network Information Plugin
gordol0.0.1-dev0
platforms: ios
$ cordova plugin add org.3screens.cordova.wireless-network-information

cordova-wireless-network-information

To install this plugin, follow the Command-line Interface Guide.

If you are not using the Cordova Command-line Interface, follow Using Plugman to Manage Plugins.

Installation

$ cordova plugin add https://bitbucket.org/ThreeScreens/cordova-wireless-network-information

Properties

  • type {String}

Events

  • WWANOffline
  • WWANOnline
  • ConnectionTestFailed
  • ConnectionTestSuccess

Example(s)

Create an instance:

var n = new navigator.wirelessConnection();
console.log("Plugin network type is: ", n.type);

Event Listeners

document.addEventListener("WWANOffline", yourCallbackFunction, false);
document.addEventListener("WWANOnline", yourCallbackFunction, false);
document.addEventListener("ConnectionTestSuccess", yourCallbackFunction, false);
document.addEventListener("ConnectionTestFailed", yourCallbackFunction, false);