-
Notifications
You must be signed in to change notification settings - Fork 513
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
[PWA widgets] Add documentation about options to update widgets more than once a day #3018
Comments
Thanks a lot for this issue. |
@captainbrosset the docs inspired me to built a widget with PWA that shows your agenda from multiple accounts. The ease of using web technolgy and still be able to have full functionality was attractive. Now I built the widget I learned service workers come with many limitations. The number of invocation of your serviceworker depend on the use of your app but will never be less then once a day (86400); using a update value like 3600 (every hour) will be still once a day, in best case, as many depends on your side engagement score which can be see here in edge: Personally I think if your widget is depended on this, PWA doesnt make sense, Your widget needs to be useful (https://learn.microsoft.com/en-us/windows/apps/design/widgets/) and showing information that is 24 hours makes it useles for many cases |
Fair point. I'm going to discuss about this with the engineering team who knows best about service workers and widgets and we'll get back to you. |
Here are two options to update your widget:
Do these help? |
I am going to search about widgetresume. Thanks for the pointer! Send push notifications isn't a option, well gives another challenge. Push Notification are required to use Alternative i was checking was to use WinAppSdk for a full native app and use WinRT background tasks which allows me to update each 15 minutes But given de effort i Did moving to native is bit waste of time |
widget resume seems to work pretty nicely. Thanks! |
Correct, silent push notifications are currently not supported by browsers, at least by Chrome and Edge.
Oh great! Glad this is working for you. I'll add this issue to our backlog and use it to update the docs to mention how to update widgets more than once a day. |
There are no noted restrictions about the update time. It kinda suggest the update time can be anything but everything below the values used in the doc (86.400) wont work
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.
AB#48547685
The text was updated successfully, but these errors were encountered: