programmatically prevent app from running in background iOS

后端 未结 4 1624
伪装坚强ぢ
伪装坚强ぢ 2020-12-16 09:01

I have an app that will run in the background but there is one case where I do not want that to happen, can I achieve this programmatically?

I know I can opt out by

4条回答
  •  失恋的感觉
    2020-12-16 09:37

    Add the variable UIApplicationExitsOnSuspend (Application does not run in background) to your applications plist and assign the value YES.

提交回复
热议问题