How can I build a webpage which is able to monitor when the page gets the focus, especially when Safari is in the background and the user switches Safari back to the foregro
Since the problem is with mobile safari and it supports popstate event, you can use this event to detect when the user is back