IPhone – How to monitor iphone bandwidth for app testing

applicationsiphone

I'm testing an iphone app someone has developed for me. It seems that some of the files the app downloads are too large.

Is there an app that monitors the network to allow me how much data my app consumes?

Best Answer

Assuming the app uses HTTP(S) to download its file, use mitmproxy. It alows you to follow live all the GET requests done by the app, even when it uses https. It requires Python.

enter image description here

Instructions on how to use (from the guy who nabbed Path's addressbook upload):

  1. Download the mitmproxy tool and set it up by going to the folder of mitmproxy and running sudo python setup.py install. If all goes well, mitmproxy must be available in your $PATH.
  2. Start mitmproxy by running mitmproxy.
  3. Obtain the IP address of your computer by running ifconfig en1 (or whatever is the interface that you are using).
  4. Set the proxy on your iPhone by going to your wireless settings, setting the proxy to be “Manual”, and set the IP to be your computer’s IP and the port as 8080.