Can I tell if the screen is off vs the browser is minimized or tab has been changed with js?
I want to be able to run a function when the user has done something on his phone that was not on my page aside from turning the screen off.
Basically, I want to ignore the screen being turned off but run a function when the user minimized the browser app or changed tabs.
Is there such a way to do this with js? or node.js?
How can I tell I trigger different events for screen off vs any other action that removes focus or makes page visibility hidden?
thank you