I am currently working on a PWA in Vaadin14. My current goal is to show up the installation window in the browser but I simply can't get it.
I tried to use https://vaadin.com/pwa/learn/installing-applications as guide. I am having a valid certificate and use a HTTPS connection for the application in the browser. The following @PWA
annotation is used:
@Route("main")
@PWA(name = "Test", shortName = "Test", backgroundColor = "#227aef", themeColor = "#227aef")
public class MainView extends AppLayout implements RouterLayout, BeforeEnterObserver {
I tried it with Chrome and Firefox, both didn't show an installation window.
It is mentioned that Vaadin creates a Web App Manifest and ServiceWorker by its own (https://vaadin.com/docs/v14/flow/pwa/tutorial-pwa-pwa-with-flow.html)
Vaadin server automatically serves the web manifest, service worker, icons, offline page, and installation prompt, and adds the necessary additions to the application headers.
I cant find the files anywhere after my project is build though. Where are they stored?
What am I missing here?
Edit: Firefox has the following config which I set to true
.
Service workers can be unavailable if the dom.serviceWorkers.enable preference is set to false in about:config.
Edit2: I could verify that Firefox does not start a Service-Worker for my application.
short_name or name, icons (192px & 512px), start_url and display (fullscreen or standalone or minimal-ui)
- Carlos