when the application terminates, I write data to the database.
As from iOS 4 applicationWillTerminate: is not called, I put the same save code as in applicationDidEnterBackground: and applicationWillTerminate:
I read that the task running in applicationDidEnterBackground: should go through several times.
So, if writing to db takes longer, how can I do this?
source share