您能否使用SpringBoard服务框架或其他私有框架找到个人应用程序使用期限? [英] Can you find individual app usage duration using SpringBoard services framework or other private framework?

查看:122
本文介绍了您能否使用SpringBoard服务框架或其他私有框架找到个人应用程序使用期限?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在iOS5上运行后台服务。我试图找到每个前台应用程序运行的持续时间。我在Vikarti Anatra看到了这篇伟大的帖子。
如何根据应用程序ID确定哪些应用程序是后台应用程序以及哪些应用程序在iOS上是前景的?

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

这显示了如何获取当前前台进程。但是,我想知道的是,是否有一种方法可以让我获得Springboard启动的各种进程的开始时间,这样我就可以计算持续时间。

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我正在尝试创建我的用户启动的应用程序日志。这不适用于应用商店认证,而是一种内部组织工具。

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.

谢谢。

推荐答案

你看过 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?

这篇关于您能否使用SpringBoard服务框架或其他私有框架找到个人应用程序使用期限?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆