Is there a way to prevent iOS6 to kill the specific task process?

前端 未结 2 1058
独厮守ぢ
独厮守ぢ 2021-01-17 02:25

I know that iOS has its own task management method and users may never need to care about the processes background. But my requirement is to ALWAYS keep a program alive, it

2条回答
  •  抹茶落季
    2021-01-17 02:32

    No, that's not possible. (Nor should it be if you think about it. What's to stop every app from saying that it can't be killed?)

    The closest you can get is for things like VoIP apps that do run in the background and automatically respawn when they die.

    The alternative is to work like every other app: when your app goes into the background you save state so you can restore if it gets killed. iOS 6 even has the state restoration functions.

提交回复
热议问题