I want to detect when the user exits my app either by clicking the Back button or the Home button or the recents button. The solution mentioned in the link below works but it depends on callbacks from Activity Lifecycle.
After the introduction of chrome tabs on android a chrome instance is opened as a part of the app but for that, we don't get any callback for activity lifecycle as it is not a part of my application. Any workaround for this?
Find the solution based on ActivityLifeCycleCallback here: