I'm working on an app where I use SignalR and HTML5 notifications. What I need is to send a notification when the user is not active at that moment or has the browser minimized, something similar to what Facebook does, hence my question. How can I tell when my browser is minimized or the user is not currently in that tab?
After a few hours of searching, I managed to solve my problem using ifvisible.js, it is very easy to use and it has several methods that are very useful for certain cases. such as: when the browser is minimized or the user is not working in that tab. I hope it helps someone else