Hi all,
Is there any component can show the current internet speed (Wifi / 4G / 3G) on Mobile app. So I can know the internet connection is good or bad.
Thanks
Hi,
Did you check https://cordova.apache.org/docs/en/latest/reference/cordova-plugin-network-information/. You just need to get below value from JavaScript and assign it to a variable on any client action
navigator.connection.type
Regards.
Prasad Rao wrote:
Thank you for your reply. I would like to ask is it possible to show the bandwidth(kb/s or mb/s) for current network. I expected the bandwidth can be refresh every second to show the network speed.
Jack Wong wrote:
Hi Jack,
I won't recommend to show bandwidth that change every second. For doing this you have to do some upload/ download and calculate bandwidth and if you are using some component then that component will do the same internally which will result it huge data uses for users.
So its better to avoid this in your app to avoid high data uses.
try to check this component: Network Connection Information
Cheers,Nuno Verdasca
I couldn't find any plugin which can provide you the network speed on both iOS and Android (https://github.com/swayangjit/cordova-plugin-networkspeed) but you can try uploading or downloading a sample file and calculate the speed by size / time taken in seconds.