Hello, I am currently working on a PWA. My current goal is to show up the installation window in the browser but I simply can’t get it. I am not using any example projects from Vaadin or something similar. We run it as a seperated Servlet in one of our projects.
I tried to use https://vaadin.com/pwa/learn/installing-applications as guide.
I am having a valid certificate and use a HTTPS connection to my development application. The following @PWA annotation is used:
@Route(“”)
@PWA(name = “Test”, shortName = “Test”,
backgroundColor = “#227aef”, themeColor = “#227aef”,
offlinePath = “pwa/offline-page.html”, offlineResources = {“images/logo.png”})
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) but I cant find it anywhere after my project is build. Where are they stored and how can I check that they are created?
Edit: I could verifiy that my application does not start a Service Worker in Firefox. …/sw.js does not find a worker.
What am I missing here?