Summary
I'd like my tool (a Pomodoro timer) to keep running when the screen turns off, with controls accessible from the lock/home screen — similar to how the built-in Music tool keeps playback controls available.
What I checked
I searched the SDK for MediaSession, NotificationManager, and ForegroundService and found no references in sdk/client, sdk/ui, or any of the example tools. I also know LightWork exists for background jobs, but it's explicitly documented as not time-sensitive (the system decides when it runs), so it's not suitable for keeping an active timer/session going.
Question
Is there a supported way (or planned API) for third-party tools to keep running with the screen off and expose controls similar to the Music tool, or is this currently exclusive to Light's own built-in tools?
Summary
I'd like my tool (a Pomodoro timer) to keep running when the screen turns off, with controls accessible from the lock/home screen — similar to how the built-in Music tool keeps playback controls available.
What I checked
I searched the SDK for
MediaSession,NotificationManager, andForegroundServiceand found no references insdk/client,sdk/ui, or any of the example tools. I also knowLightWorkexists for background jobs, but it's explicitly documented as not time-sensitive (the system decides when it runs), so it's not suitable for keeping an active timer/session going.Question
Is there a supported way (or planned API) for third-party tools to keep running with the screen off and expose controls similar to the Music tool, or is this currently exclusive to Light's own built-in tools?