简体   繁体   English

检测哪个是iOS设备中当前正在运行的应用程序。

[英]detect which is the current running application in device in iOS.

Is there any possible way to track which application is running in foreground in device in iOS. 是否有任何可能的方法来跟踪哪个应用程序在iOS设备的前台运行。 For example if I am using facebook app I need to get the name of the application from my application. 例如,如果我正在使用Facebook应用程序,则需要从应用程序中获取应用程序的名称。

If SMS application is used I need to get the name of the application from my application. 如果使用SMS应用程序,则需要从我的应用程序中获取应用程序的名称。

It's not possible. 这是不可能的。 All you can do is get a list of currently running tasks using a systcl call. 您所能做的就是使用systcl调用获取当前正在运行的任务的列表。

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

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