简体   繁体   English

从我的应用程序跟踪其他应用程序 - iOS

[英]Track other app from my app - iOS

Is there any provision to track(usage time) of any app from another app in iOS? 是否有任何跟踪(使用时间)来自iOS中其他应用程序的应用程序的规定?
For example:- I have developed an app named " A " and I want to track usage time of another app installed in my device(iPhone or Android) named " B ". 例如: - 我开发了一个名为“ A ”的应用程序,我想跟踪我的设备(iPhone或Android)中安装的另一个名为“ B ”的应用程序的使用时间。 By usage time, I mean how much time a user had used the app. 根据使用时间,我的意思是用户使用该应用程序的时间。 Would it be possible? 这有没有可能?

Another scenario:- Is it possible to track usage time of native app(like mail, camera, message,etc) from our app? 另一种情况: - 是否可以从我们的应用程序跟踪本机应用程序的使用时间(如邮件,相机,消息等)?
I think this is not possible in iOS, but not sure about it. 我认为这在iOS中是不可能的,但不确定。
Does anyone have any idea of this? 有没有人知道这个?

Note:- I don't want to track my app usage using Google analytics. 注意: -我不想使用Google Analytics来跟踪我的应用使用情况。

You can't! 你不能!

All the application in iOS runs in sandbox mode. iOS中的所有应用程序都以沙盒模式运行。

If you want to track your application usage you have to connect it to the server with (ex) REST interface. 如果要跟踪应用程序使用情况,则必须使用(ex)REST接口将其连接到服务器。

EDIT: Just bump on the idea... If you writing for iOS7 you can use Shared Keychain feature. 编辑:只是碰到这个想法......如果你为iOS7写作,你可以使用Shared Keychain功能。 You can send there all usage statistics and receiving it by other app. 您可以发送所有使用情况统计信息并通过其他应用程序接收。 Should work! 应该管用!

Check this out: http://shaune.com.au/ios-keychain-sharing-data-between-apps/ 看看这个: http//shaune.com.au/ios-keychain-sharing-data-between-apps/

If both apps are signed by the same App Store Developer account, then they can both share an iCloud data store. 如果两个应用程序都由同一App Store开发人员帐户签名,则他们可以共享iCloud数据存储。 Just store the usage time in iCloud and it'll work perfectly. 只需将使用时间存储在iCloud中,它就能完美运行。

You cannot track any app by any other developer, the security model does not allow it. 您无法跟踪任何其他开发人员的任何应用程序,安全模型不允许它。

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

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