zepp-os-background-scheduling
Installation
SKILL.md
Zepp OS Background & Scheduling
Context: Device App + App Service (both on the watch). API_LEVEL:
[≥3.0]for app-service/alarm/notification;createSysTimeris[≥4.0]. Prereq: declaring theapp-servicemodule + permissions inapp.json— seezepp-os-fundamentals.
Overview
Four tools, each for a different "later":
| Need | Tool | Permission | Level |
|---|---|---|---|
| Run logic in the background, independent of the foreground page | @zos/app-service |
device:os.bg_service |
[≥3.0] |
| Wake the app at a wall-clock time (survives app exit) | @zos/alarm |
device:os.alarm |
[≥3.0] |
| Run a callback every N ms, even when the screen is off | @zos/timer createSysTimer |
— | [≥4.0] |
| Post a notification to the watch's notification center | @zos/notification |
device:os.notification |
[≥3.0] |