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.
- 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();
}
});