Testing out the Page Visibility API in a PWA. Install/add this PWA to your home screen. Then switch away from it and back. This page will log when the Page Visibility events are fired.
Source here
.