tag:blogger.com,1999:blog-3760424589061564192.post2186127612565737951..comments2022-12-09T20:22:03.940+11:00Comments on Chris Miles: iOS 4 Background Task Completion for River LevelAnonymoushttp://www.blogger.com/profile/13668799547352259386noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-3760424589061564192.post-9826404005511775492012-11-12T17:15:05.172+11:002012-11-12T17:15:05.172+11:00I had no idea this was so simple. Should have done...I had no idea this was so simple. Should have done it ages ago. Thanks for the writeup!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3760424589061564192.post-64788102959554037212012-09-07T14:30:01.721+10:002012-09-07T14:30:01.721+10:00Hi Dale, yes that is correct. Call it at any time ...Hi Dale, yes that is correct. Call it at any time so your background task request is active, ready for if the app gets backgrounded. If it doesn't get backgrounded, it will just be ignored.<br />Cheers,<br />Chris<br />Anonymoushttps://www.blogger.com/profile/13668799547352259386noreply@blogger.comtag:blogger.com,1999:blog-3760424589061564192.post-88849096498997013542012-09-07T02:44:12.036+10:002012-09-07T02:44:12.036+10:00Hi Chris, I was thinking this code had to be added...Hi Chris, I was thinking this code had to be added to the delegate's applicationDidEnterBackground method. From the looks of your write-up, I can add the beginBackgroundTask... method anywhere I want to perform a long task that I don't want to be interrupted. Is this correct?<br />Dale Anonymoushttps://www.blogger.com/profile/17110090920161260213noreply@blogger.com