Callbacks for when your app comes to foreground and goes to background.
We make you of ProcessLifecycleOwner to get these callbacks. A detailed blog explaining its implementation and use cases is available on Faanghut. Kindly check out this article and let us know if you face any issues while implementing it.