如果我调用 beginBackgroundTaskWithExpirationHandler
会发生什么?每隔几分钟定期一次,从不调用endBackgroundTask
?
创建后台任务有限制吗?
最佳答案
What happens if i call
beginBackgroundTaskWithExpirationHandler
periodically every minutes and never callendBackgroundTask
beginBackgroundTaskWithExpirationHandler:
实际上并没有“开始”任务。将其视为“注册...”而不是“开始...”可能会更好。您只是在告诉系统您正在做某事,如果可以的话,您正在做一些想做的事情。 is there any limit for creating background task?
This和 this是有关该主题的好读物。
关于ios - 后台任务有限制吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42321483/