In iphone it when we press home button, application goes into the background. And then when we press home button twice we can see list of running applications. And then when we press that icon for long time one red round button comes, through which we can delete the app.
I wanted to know is there any notification comes for this particular situation in iphone.
Actually i wanted to handle this situation in my code, when we are closing our application by pressing home button twice.
Please tell me some solution and please let me know it there is any clarifications required regarding this question.
Thanks
According to this question, when a user kills an app, it’s a SIGKILL (as opposed to when iOS kills the app, which calls applicationWillTerminate).
You cannot execute code for when a user kills the app, only for some general application states, such as active, background, suspended, and inactive. Check out Apple’s documentation on app states.