Cordova plugin to operate and get TrafficStats of Android
Use the plugin with Cordova CLI (v5.x or above):
cordova plugin add cordova-plugin-trafficmonitor
When use with PhoneGap Build, write following line in your config.xml:
<gap:plugin name="cordova-plugin-trafficmonitor" source="npm" />
showStats(successCallback, failureCallback);