I have an angular 9 app that is mostly used by people on phones. The page has live data on it. Is there an event I can listen to when someone reopens the page so that I can refresh data?
I've noticed that if I leave the page opened in a browser, and then minimize the browser or put the phone to sleep the page will show old data until the regular refresh timers hit. I would like to get an event as soon as someone resumes the page or reactivates it again so I can instantly refresh data.
Is there such an event that I can listen to?