Re: [w3c/ServiceWorker] openWindow with a WebApp manifests (#720)

This issue is happening to my PWA. Here is another common scenario similar to the case of push notifications:

- From a desktop browser (chrome in my case) app adds a web notification while in foreground (in my app, it "pins" an item for later easy access). App was launched from homescreen as fullscreen.

- User closes the app. Then clicks the notification. My app will use clients.openWindow, but it will open as a new Chrome tab.

One possible solution is for openWindow to use the window styles/size/position of the window that installed the serviceWorker (all of which chrome currently does when launching in homescreen mode).

The issue goes together with using  notification requireInteraction (supported in Chrome and planned for mozilla52.) When using that flag, the notification stays up even when closing the browser, increasing chances of hitting this.

-- 
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/ServiceWorker/issues/720#issuecomment-269984307

Received on Monday, 2 January 2017 15:11:22 UTC