How to update the screen immediately when the wearable watch wakes up?

■ Summary

- The following code snippet demonstrates how to update the screen immediately when the wearable watch wakes up.
- This is the guide from webkit part.
// Add eventListener to update the screen immediately when the device wakes up    

document.addEventListener("visibilitychange", function() {
    if (!document.hidden) {
        updateWatch();
    }
});   

Responses

0 Replies