-
Notifications
You must be signed in to change notification settings - Fork 0
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
Initial Feedback #4
Comments
Thanks @David-Ossim!
Agreed.
Totally agree. My gut says widgets like this might fall into the "rich widget" camp as they would require a higher level of autonomy for running bespoke code.
Agreed. Localization is a whole other nut we are trying to crack.
Yes, the
Yes,
It’s actually bound to the
The Hypothetically, you might start with a baseline "content-feed," for instance, that gets implemented in a number of hosts, but if you also include the
:-)
Ultimately this is about balancing performance on the device. Just as hosts throttle Service Worker background tasks, push notifications, etc. I could imagine a scenario where a host needs to limit widget communication as well. I do strongly believe there should be a Widget Lifecycle that handles freeze/thaw events to ensure widgets get updated so as to be relevant, but I also want developers to think a bit about how often they want data to update so they can plan for the worst case scenario (slow device/network). And most time-sensitive widgets (e.g., a stock ticker) do create affordances for this with "last updated at" indications and a manual refresh button.
If the widget supports an app icon in the UI, this could be piped in. But the app icon could also be used. This would only be necessary if the widget needed a bespoke icon.
We are working on user-preferences separately.
:-) |
@David-Ossim I just made a ton of additions to the proposal to (hopefully) clarify things a bit more. Would love your thoughts. |
@aarongustafson This definitely clarifies some of the implementation and the role of the service worker. Pretty much aligns with my understanding from previous chats. A few random questions:
|
There's a lot here that I'm aligned with. Very excited to see clear ideas about the future of Widgets and PWA!
I like defining Widget structure + behavior inside the PWA manifest as the Widget is a projection of the PWA. Defining the Widget within the PWA makes this projection clearer and likely simplifies future PWA+Widget concerns packaging, registration, communication, etc. (Sidebar: I think there's still a separate need to create standalone web-based widgets. A utility widget, like a clock, probably doesn't need to interact with an app or browser experience.)
Looking at the current WidgetDefinition sample, these are my initial thoughts. Happy to dive into any further!
url
is present, thentype
,template
,anddata
are ignored. For Windows-specific PWA widgets, having a separate field that expects Adaptive Card template endpoints is a must.template
. I don't yet see why separating mime type from the template will help developers.template_url
that points to some standardized template structure that all browsers know how to render and bind todata
. No strong opinion though. For my use cases as a developer, I'm more likely to useurl
orms-acn
.visual_display_mode
.The text was updated successfully, but these errors were encountered: