how to find internet speed in ionic application and which is the best way to do it ? Is there any plugin to find internet Speed?
Asked
Active
Viewed 2,731 times
0
-
http://stackoverflow.com/questions/5529718/how-to-detect-internet-speed-in-javascript – George Son Feb 15 '16 at 12:48
2 Answers
1
There's a Network Information plugin for cordova/ionic that might help determine the network, and then you can go from there. Install it like this:
cordova plugin add org.apache.cordova.network-information
Use it like:
$ionicPlatform.ready(function() {
if(window.Connection) {
if(navigator.connection.type == Connection.NONE) {
...
}
}
}
The available options are:
Connection.UNKNOWN
Connection.ETHERNET
Connection.WIFI
Connection.CELL_2G
Connection.CELL_3G
Connection.CELL_4G
Connection.NONE
Here's a blog post that might help.

Chewpers
- 2,430
- 5
- 23
- 30
-
Thank You for your reply mrust , it will be the solution for my question , I will work on it and let u know if any issues. Thank U . – Gopinath Kaliappan Feb 16 '16 at 17:07