Continue the task in the background.

I missed something with the multitasking function. I know that we can complete the task in the background, but I really need this task to continue when the application enters the background. So I need something other than starting a new task in the background. If the images are uploaded to the view and the user presses the home button so that the application goes into the background, I want the images to continue loading, and when the user activates the application again, he can see all the downloaded images. How can this be done? Many thanks.

+3
source share
2 answers

The background task documentation is on the Apple website in the iPhone Application Programming Guide .

0
source

In accordance with the specified documentation, if you use beginBackgroundTaskWithExpirationHandler:while in the foreground, it will continue to perform background viewing until it ends. Upon completion of this task, your application may be suspended.

0
source

Source: https://habr.com/ru/post/1753930/


All Articles