How to keep track of the network traffic on 3G/wif

2019-03-15 02:48发布

问题:

This question already has an answer here:

  • iPhone Data Usage Tracking/Monitoring 6 answers

I am trying to understand how does an app like DataMan work. Even if it runs on the background, how can it measure the bandwidth allocation of the other apps?

回答1:

Most apps like that inject a proxy to all your data calls. Through that they measure the amount of bandwidth you are consuming.

There is no way to measure data you are using outside of your app. You can track it for your own network call within your app though.