If a custom getx controller for a widget is having counter increment based on timer runs every certain seconds.
The problem is that the counter increment function keeps running even if app is in the background or screen locked.
I know how stop/cancel the timer but want to do it if the app is not active. So using GetX package how to get the app status like running, closed by user, running in background but not active on the screen, etc.
Thank you.