您可以使用 SpringBoard 服务框架或其他私有框架找到单个应用程序的使用持续时间吗?
我有一个在 iOS5 上运行的后台服务。我试图找到每个前台应用程序运行的持续时间。我看到了 Vikarti Anatra 写的这篇很棒的文章。 如何通过应用程序 ID 确定 iOS 上哪些应用程序是后台应用程序和哪些应用程序是前台
这显示了如何获取当前的前台进程。但是,我想知道是否有一种方法可以为我提供 Springboard 启动的各种进程的开始时间,以便我可以计算持续时间。
我正在尝试创建用户启动的应用程序日志。这并不是用于应用程序商店认证,而是一种内部组织工具。
谢谢。
I have a background service running on iOS5. I am trying to find the duration for which each foreground application runs. I came across this great post by Vikarti Anatra.
how to determine which apps are background and which app is foreground on iOS by application id
This shows how to get the current foreground process. However, what I would like to know is if there is a method which will give me the start time of various processes launched by Springboard so I can compute the duration.
I am trying to create a log of apps launched by my users. This is not meant for app store certification and meant to be an internal organization tool.
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您看过 SBApplication 吗?也许您可以在 SpringBoard.app 内混合
-[SBApplication activate]
和-[SBApplication deactivate]
并计算它们之间的时间?Have you had a look at SBApplication? Perhaps you could swizzle
-[SBApplication activate]
and-[SBApplication deactivate]
inside SpringBoard.app and calculate the time between them?