Skip to content

Warning: Work in progress! This is a Cordova/Phonegap plugin to grab WWAN radio state on IOS. The goal is to expose the connection type, ex: 4g, cdma, edge, hspa, etc... and to test connectivity when the modem changes access states.

Notifications You must be signed in to change notification settings

gordol/cordova-wireless-network-information

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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);

About

Warning: Work in progress! This is a Cordova/Phonegap plugin to grab WWAN radio state on IOS. The goal is to expose the connection type, ex: 4g, cdma, edge, hspa, etc... and to test connectivity when the modem changes access states.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published