从其他应用程序(特别是 iPhone 的电话应用程序)获取信息
我想知道是否有任何方法可以通过 iPhone 应用程序跟踪手机分钟数的使用情况。我认为一定有一个解决方案,因为 iData 使用可以跟踪手机使用的数据,几分钟内一定有一个类似的解决方案。有谁知道这是否可能或如何实现这一目标?
谢谢你,
杰里米
I'm trying to figure out if there is any way to track the usage of a phone's minutes from an iPhone app. I think there must be a solution since iData Usage can track the data a phone has used, there must be a similar solution for minutes. Does anyone know if this is possible or how to achieve this?
Thank you,
Jeremy
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
跟踪数据使用情况的应用程序可能通过检查日志文件来工作。例如,使用 Mac 上的控制台应用程序查看 /private/var/log/daily.out,您将看到系统记录每个网络接口上的入站和出站数据包的每日总数。 iOS 与 MacOS X 在底层有很多共同之处,因此
iPhone 上很可能存在类似的日志文件,并且它会跟踪电话呼叫吗?我不知道。如果存在,您可以访问该数据吗?我不知道。但分析日志文件似乎是一个有前途的探索途径。
您可能还想了解 AT&T 和/或 Verizon 是否提供任何类型的 API,让您可以请求已用分钟数、剩余分钟数等。他们必须提供一些类似的服务,因为用户可以在“设置”应用中请求该信息并通过短信接收答复。您是否可以获得该服务是另一个问题。
Apps that track data usage probably work by examining log files. For example, use the Console app on your Mac to take a look at /private/var/log/daily.out and you'll see that the system logs daily totals for inbound and outbound packets on each network interface. iOS shares a lot with MacOS X under the hood, so it's very likely that
Does a similar log file exist on iPhone, and does it keep track of phone calls? I don't know. If it exists, can you get access to that data? I don't know. But analyzing log files seems like a promising avenue to explore.
You also might want to explore whether AT&T and/or Verizon offer any sort of API that lets you request minutes used, minutes remaining, etc. They must provide some service along those lines since the user can request that information in the Settings app and receive the answer via SMS. Whether you can get access to that service is another question.
我不知道这种可能性,因此这是不可能的(AFAIK)。
I'm not aware of this possibility and thus it's not possible (AFAIK).