Skip to content

Add Sleep Timer Live Activity#4348

Open
mofman wants to merge 3 commits into
Automattic:trunkfrom
mofman:trunk
Open

Add Sleep Timer Live Activity#4348
mofman wants to merge 3 commits into
Automattic:trunkfrom
mofman:trunk

Conversation

@mofman

@mofman mofman commented May 15, 2026

Copy link
Copy Markdown

Adds a Sleep Timer Live Activity so users can see the remaining sleep timer countdown from the Lock Screen and Dynamic Island.

The Live Activity starts when a timed sleep timer is enabled, updates when the timer is extended, and ends when the timer finishes or is cancelled. It also includes a + 5 Minutes action so users can extend the
timer directly from the Live Activity. The Lock Screen presentation intentionally keeps the timer card focused on the countdown, since episode details are already shown in the system Now Playing card.

To test

  1. Build and run the app on an iOS 17+ simulator or device.
  2. Start playing an episode.
  3. Open the sleep timer and choose a timed duration, for example 30 minutes.
  4. Lock the device.
  5. Confirm the Sleep Timer Live Activity appears on the Lock Screen with the countdown.
  6. Tap + 5 Minutes.
  7. Confirm the countdown increases by 5 minutes.
  8. Unlock the device and cancel the sleep timer.
  9. Lock the device again and confirm the Live Activity is dismissed.
  10. Repeat with the Dynamic Island expanded and compact states on a supported simulator/device.

Checklist

  • I have considered if this change warrants user-facing release notes and have added them to CHANGELOG.md if necessary.
  • I have considered adding unit tests for my changes. (not necessary)
  • I have updated (or requested that someone edit) the spreadsheet to reflect any new or changed
    analytics.

No new analytics were added.

@mofman mofman requested a review from a team as a code owner May 15, 2026 19:35
@mofman mofman requested review from kean and removed request for a team May 15, 2026 19:35
@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


Andrew Moffett seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@mofman

mofman commented May 15, 2026

Copy link
Copy Markdown
Author
Simulator Screenshot - iPhone 17 - 2026-05-15 at 20 26 37 Simulator Screenshot - iPhone 17 - 2026-05-15 at 20 27 20

@CookieyedCodes

Copy link
Copy Markdown

Is it possible to add a +1 min option too & a different dynamic island if chapters or episode timers are selected?

@kean

kean commented May 19, 2026

Copy link
Copy Markdown
Contributor

Hey, thanks for the PR @mofman! I'm sharing it with the product folks to gather some feedback before the review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants