I am trying to handle the case in which, after the user clicks on the "Update" button in the immediate update dialog and the update starts, but he terminates the App. I have tried to get a call back from the onActivityResult as mentioned in the documentation (Here is the link). But this only gives the callback when the user cancels the update in the UI(the cross button) that is shown during the download. In the documentation it is given that we must handle the app termination case as well. How can I achieve this?
Edit: I have tested after terminating the app. The download happens in the background automatically and is showed in the notification tray. But when I cancel this in the tray, it doesn't give me any callback in the onActivityResult.