Hey howdy; trying to grok the use case: is it a situation where you've got one window already but want a second one from a notificationclick event?
-
-
I am porting
@vysorapp to from a Chrome app to PWA. I used to use http://chrome.app .window to create additional windows. Right now it's all a SPA, but the UX is bit clunky. Users often have multiple Android devices they are mirroring, and without an easy way to create[cont]2 replies 1 retweet 3 likes -
Replying to @koush @slightlylate and
additional windows, it gets a bit clunky. At the moment, there's a few workarounds. Going to chrome's app launcher, and clicking the PWA icon does open an additional window. Alternatively, using http://window.open from a browser tab which can then be promoted to a PWA window
2 replies 1 retweet 1 like -
Yeah...not ideal. We should give you a way to do this w/ clients.openWindow() or a "display" mode for http://window.open ()
1 reply 0 retweets 2 likes -
-
/cc
@b1tr0t1 reply 0 retweets 1 like -
Replying to @slightlylate @koush and
Lemmie see what happens if you route a postMessage for clients.openWindow()...haven't tested this before.
1 reply 0 retweets 0 likes -
Replying to @slightlylate @samccone and
I attempted this (but perhaps not correctly). pwa click -> pwa post message to service worker -> sw openWindow -> permission denied is there a way to "forward" the user interaction context properly? i'm was just sending plain old messages.
1 reply 0 retweets 0 likes -
Just tried the same. I think we aren't forwarding the user activation correctly.
2 replies 0 retweets 2 likes -
Replying to @slightlylate @samccone and
i figured it was by design, since post is async. similar to how the user activation drops during an async call suspension. (the event call stack is cleared)
1 reply 0 retweets 0 likes
A lot of work has happened recently to rationalise user activation and make async work like this happen reasonably:https://developers.google.com/web/updates/2019/01/user-activation?hl=en …
-
-
Replying to @slightlylate @koush and
Via Mike Wasserman, don't need to resort to any of this; turns out this is the magical incantation (on desktop): `http://window.open ("/", "_blank", "toolbar=no")`
3 replies 1 retweet 20 likes -
- 4 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
& Web Standards TL; Blink API OWNER
Named PWAs w/
DMs open. Tweets my own; press@google.com for official comms.