How to know if app is in background or foreground?

How to know if app is in background or foreground?

BY 14 Jan 2017 Web Application Development

Hi

I want to know/intercept somehow if the app goes to the background to disable some threads. And if it comes back to the foreground…

How can I do that in a web application?

Thanks

 

 

Written by