Problem: I need a way to measure if the screen is locked/unlocked while my app is running in the background.
What I have tried: Using React Native's App State, I can measure if the App is active, but there is no differentiation between the App being in the background or the screen is locked.
I have found this duplicate, however since there has been no solution given I have opened a new question.
I'm looking for a solution for Android.