简体   繁体   English

iPhone / iPad数据使用情况跟踪

[英]iPhone/iPad data usage tracking

Just wanted to ask the community a quick question. 只是想向社区提出一个简短的问题。 Out of curiosity, would anyone have an idea how the iPhone App "DataMan" and "Data Usage" are pulling data readings of your personal cellular data usage? 出于好奇,有人会知道iPhone应用程序“DataMan”和“数据使用”如何提取您个人蜂窝数据使用的数据读数? I've check the web high and low for possible answers and all so far has been dead ends. 我已经检查网络的高低可能的答案,所有到目前为止都是死路一条。 How could they have gotten their Apps to be Apple approved? 他们怎么能让他们的应用程序获得Apple批准?

Any help or advice would be great! 任何帮助或建议都会很棒!

One way to do this would be to install a configuration profile with the proper APN settings which will route all the network traffic through a proxy server. 一种方法是安装具有适当APN设置的配置文件,该设置将通过代理服务器路由所有网络流量。 For WiFi, you can set the proxy in the network settings. 对于WiFi,您可以在网络设置中设置代理。 This way you can easily get data usage statistics using a proxy server such as Squid. 这样,您可以使用代理服务器(如Squid)轻松获取数据使用情况统计信息。 Also, it is possible to get per-app data usage by inspecting the HTTP headers of the request, since all apps using CFNetworking pass the app name in the header. 此外,通过检查请求的HTTP标头,可以获得每个应用程序的数据使用情况,因为所有使用CFNetworking的应用程序都会在标头中传递应用程序名称。 I am almost sure this is how Onavo works. 我几乎可以肯定这就是Onavo的工作原理。

The other way would be to use a VPN connection. 另一种方法是使用VPN连接。 The principle is the same, only the technique is different. 原理是一样的,只有技术不同。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM