Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1107 improve live activities #1114

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

Conversation

BPerlakiH
Copy link
Collaborator

Fixes: #1107

UI:

I have changed the background for the live-activity, so it matches the look and feel of other widgets on the Lock Screen. There's one issue though, Apple's environment property:
isActivityFullScreen has a bug, when we use min iOS is 16. According to their docs it has been "back-ported", but in reality using it is breaking the live-activity, and nothing will show up. Not using it is at the moment OK, I think, the only side effect is that in iPhone standby mode the live activity background is blurred instead of black. We can solve this only by updating to min iOS 17.

Update frequency

Long story short: local updates for "live" activities can get ignored by the system if we send them too often. From my tests it seems that updating the live activity every 10 seconds, is stable enough.

I have added a countdown timer, that is showing that something is happening for the user, although the calculations of that is approximate. We update the "start time" of the counter every 10 sec, so it might jump up or down, plus we update the amount downloaded and the progress spinner every 10 sec.

@codecov-commenter
Copy link

codecov-commenter commented Feb 14, 2025

Codecov Report

Attention: Patch coverage is 5.88235% with 80 lines in your changes missing coverage. Please review.

Project coverage is 35.07%. Comparing base (2382a35) to head (ce266fb).

Files with missing lines Patch % Lines
Model/Utilities/DownloadTime.swift 0.00% 48 Missing ⚠️
Views/LiveActivity/ActivityService.swift 15.15% 28 Missing ⚠️
Common/DownloadActivityAttributes.swift 0.00% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1114      +/-   ##
==========================================
- Coverage   36.18%   35.07%   -1.11%     
==========================================
  Files         134      135       +1     
  Lines        7730     7808      +78     
==========================================
- Hits         2797     2739      -58     
- Misses       4933     5069     +136     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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.

Improve LiveActivities
3 participants