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

Widget #37

Open
jonfawcett opened this issue Jun 23, 2020 · 1 comment
Open

Widget #37

jonfawcett opened this issue Jun 23, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@jonfawcett
Copy link
Collaborator

Today widget for iOS 13 and home screen widgets for iOS 14

@jonfawcett jonfawcett added the enhancement New feature or request label Jun 23, 2020
@mikebash
Copy link
Contributor

I've thought about this as well as it would be pretty handy. In doing a little reading, the refresh rate may be a hurdle to provide updated info as frequently as we'd like.

https://developer.apple.com/documentation/widgetkit/keeping-a-widget-up-to-date

To manage system load, WidgetKit uses a budget to distribute widget reloads over the course of the day. The budget allocation is dynamic and takes many factors into account, including:

The frequency and times the widget is visible to the user.
The widget’s last reload time.
Whether the widget’s containing app is active.

A widget’s budget applies to a 24-hour period. WidgetKit tunes the 24-hour window to the user’s daily usage pattern, which means the daily budget doesn’t necessarily reset at exactly midnight. For a widget the user frequently views, a daily budget typically includes from 40 to 70 refreshes. This rate roughly translates to widget reloads every 15 to 60 minutes, but it’s common for these intervals to vary due to the many factors involved.

Perhaps though there are ways to ensure the widget is always up to date when the viewer looks at it (and doesn't update when not viewed - hence the 40-70 refreshes per day).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants