How do I detect when my watchface comes to the foreground?
<p>when my watchface (Web-based) goes to the background, the timers used to keep the time updated are paused.
this causes a lag effect when you come back. making the user see an outdated time for a few seconds.</p>

<p>My ideal solution, in order to not screw more things up and not have to adapt a bunch of animations to 0.1 seconds timers or whatever is the following:</p>

<ul>
<li>Detect when the watchface comes back to the foreground</li>
<li>then set the time and the intervals again</li>
</ul>

<p>For this to work the very first step is, of course, to detect when my watchface comes back to the foreground, but I'm absolutely clueless and I haven't really found much. Besides my internet is really bad and testing on my real watch is a problem, so I just need to know what's already proven.</p>

<p>How do I detect when my watchface comes back to the foreground?</p>

<p>Thanks a bunch in advance</p>