Is there a way to check if app is in the background,closed or running from a Workmanager within BroadcastReceiver? I want to show an internal notification when the app is closed or in the background.
I already found some related topics about this but unfortunately the restrictions are changed since Android 10 which makes it a bit harder.
Thank you in advance