Skip to content

No API for lock-screen media controls or keeping a tool's state running with the screen off #136

Description

@wildassoler

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions