Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I get the iPhone's current network speed?

I want to get the iPhone's network speed so that I can give user an info when the speed is too slow.

like image 324
Yue Zhang Avatar asked Jul 10 '10 01:07

Yue Zhang


2 Answers

Remember, the iPhone is a wireless device, and likely on the move. The network speed can (and will) vary drastically from moment to moment, so measure average throughput over at least 20 seconds or so... that's basically how the "bars" work. If they were updated in real time, they would be bouncing all over the place.

like image 146
Dolph Avatar answered Sep 19 '22 15:09

Dolph


Net speed is gonna vary radically depending on a huge passel of variables between the iPhone and whatever server you are trying to connect to.

You are far better off adapting your behavior on the fly based on whatever data flow rate you happen to be enjoying at any given time.

Kinda like how Netflix automatically adjusts video quality as the network connection quality changes over time.

like image 28
bbum Avatar answered Sep 23 '22 15:09

bbum