iOS Background Mode

后端 未结 3 2031
梦毁少年i
梦毁少年i 2021-01-05 10:22

I have a question about running an app in the background. I know about how to do it, but Apple does not like the way I\'m doing it.

To get you on the same page, I ha

3条回答
  •  情话喂你
    2021-01-05 11:16

    You can use background modes only if you actively use the activity that keeps the app awake: e.g. continuously playing audio is a valid use of the audio background key. They'll look pretty hard at whether you really need the access you request, and if not they'll reject you (as you've already found out), as background services drain the battery considerably more than others.

    From the docs:

    These keys should be used sparingly and only by apps providing the indicated services.

    Short story: I think you're out of luck with your proposed implementation.

提交回复
热议问题