Is there any system level background queue on the iPhone?

I need to save a large file, once it takes a very long time, the user can just close the application. I wonder if the iPhone SDK can take on the unfinished big task.

There is an opportunity to create your own email system iPhone. I prepared the email, click "Submit", and then immediately close the mail application. On the home page, after a few seconds, I heard a sound and the letter was delivered.

+4
source share
3 answers

You were unlucky. Only Apple native applications can run in the background. But I think your application gets some time to finish when the user closes the application.

+3
source

You cannot run the application in the background, as PEZ says. However, you can turn off the thread to complete the task, and then at least the user can continue to work with other things in your application.

+1
source

If I remember correctly, your application gets 5 seconds between pressing the home button and the iPhone OS killing it if you are not done.

+1
source

All Articles