We are developing an iOS app, which requires recording of data that comes over network socket into a file in the media share as one of its features. We would like to know if the following things are possible and if so, then how.
1. Any notification can be obtained when the app is force quit after moving to background.
2. On force closing the app, we would like to write a footer to the data file. Is it possible to get any hook to do this before closing the application.