2

I am developing chat app that need to keep socket connection open while app is not active. I have tried by modifying app background setting to VOIP, still OS kill my app after 10 min. approx.

I have already developed same chat app in titanium ios. Titanium provides Ti.App.backgroundservice for background purpose. It runs infinity on it. I have also checked titanium's class files for background services they provide, but it is difficult to understand.

My question is how titanium make it possible to run background service infinitely? So that I can use same methods to keep my socket connection alive infinitely in my core ios app.

4

1 回答 1

1

我没有钛的经验,所以不能说它是如何工作的,但请查看下面的 iOS 评论,

请检查iOS Voip Socket will not run in background,在 iOS for VOIP 应用程序中,您需要将属性设置为 VOIP 的 TCP 套接字。

当应用程序被杀死时,您是否收到 0x8badf00d 异常?

于 2013-10-24T08:49:24.320 回答