如何检查应用程序是否在后台运行

时间:2022-08-16 21:01:34

I have made my app to be background running and it is going to be voip based app

我已经让我的应用程序成为后台运行,它将是基于voip的应用程序

Open application's Info.plist file.
Added a new row and type in the Key field "Required background modes".
Expand this array and for Item 0, type in the Value field "App provides Voice over IP services"

Now I would like to check, is that working after going in the background?

现在我想检查,是否在后台工作?

I have been trying to know this and I have searched for a long time but nothing seems to help...

我一直试图了解这一点,我已经搜索了很长时间但似乎没有任何帮助......

Please guide me up.

请指导我。

How can I ensure that my app can work even in the background state?

如何确保我的应用程序即使在后台状态下也能正常工作?

Thanks

2 个解决方案

#1


1  

Try NSLog-ging while in the background, and check whether the logs are shown in the Console.

在后台尝试NSLog-ging,并检查日志是否显示在控制台中。

#2


0  

The obvious way is to try to make a viop connection to it and see if it responds?

显而易见的方法是尝试与它建立viop连接并查看它是否响应?

#1


1  

Try NSLog-ging while in the background, and check whether the logs are shown in the Console.

在后台尝试NSLog-ging,并检查日志是否显示在控制台中。

#2


0  

The obvious way is to try to make a viop connection to it and see if it responds?

显而易见的方法是尝试与它建立viop连接并查看它是否响应?