Re: [w3c/manifest] App shortcuts / actions (#582)

Thanks!

>  If one or more windows are currently open within the context of the Manifest, the shortcut action should be directed into the only (or most recently used context). If no contexts are open, a new one should be created to respond to the shortcut action.

I think we should follow the behavior of existing features that have the same pattern (e.g. registerProtocolHandler and Web Share Target). In these cases I think currently a new window is opened for each request (but we should verify that :). It can be dangerous to perform the navigation in an existing context because the user may have unsaved changes there. As you mentioned, the launch event will give full control over windowing.

> In Windows, there is something called an activation event, which is how Twitter handles it within their PWA. 

Hmm, what do you mean by "which is how Twitter handles it within their PWA"? Are you saying the twitter PWA handles Windows-specific activation events?

> This is very similar to the proposed launch event, but there are a few notable differences I plan to bring up in that discussion.

Please do! Feel free to file bugs on the [repo](https://github.com/WICG/sw-launch/blob/master/explainer.md). We're currently in the process of doing some work on that spec :) 

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/manifest/issues/582#issuecomment-478749149

Received on Monday, 1 April 2019 21:10:28 UTC