I have some resources to clean up(at the server side) when user closes the app by swiping the app from all open apps or pressing back button. My onDestroy is not being called in these above cases.So my question is
Which callback method is needed for the above scenarios and Why?