I want to perform log out function when the app force quits or crashes unexpectedly. To perform this task i need to call a web service to remove my information from server side database.But i am unable to call a web service when app force quits or crashes. So please help me out to resolve this.
applicationWillTerminate
and
applicationWillResignActive
delegate method did not work for me!
Thanks!
There are ways in which an app can exit where it’s going to be difficult (maybe impossible) to intercept and cause code to execute. You would be better off having the host system detect a disconnect or timeout and log out the user automatically from that side.