Skip to content

swayangjit/cordova-plugin-networkspeed

Repository files navigation

cordova-plugin-networkspeed

npm version License

Cordova plugin to get network speed (Android)

API

The plugin exposes the following method:

networkspeed.getNetworkSpeed(success, error);

Parameters:

  • success: success callback which returns network speed in KB/s
  • error: error callback

Installation

The plugin can be installed via Cordova-CLI and is publicly available on NPM.

Execute from the projects root folder:

$ cordova plugin add cordova-plugin-networkspeed

Or install a specific version:

$ cordova plugin add cordova-plugin-networkspeed@VERSION

Or install the latest head version:

$ cordova plugin add https://github.com/swayangjit/cordova-plugin-networkspeed.git

Or install from local source:

$ cordova plugin add --nofetch --nosave --link