hilla
hilla copied to clipboard
The `description` property of the `@PWA` annotation is ignored
When using the @PWA annotation to make my Vaadin app installable to home screen, I want to see the application description specified in the description property of the @PWA annotation in the web application manifest at the run time, so that I can control the application metadata as in V12-V17. With V18 (Flow 5.0.offline-SNAPSHOT) it's not the case - the description property seems to be ignored.
Steps to reproduce
- create a Vaadin 17 app from start.vaadin.com
- override the version of Flow to 5.0.offline-SNAPSHOT
- set the description in the
@PWAannotation:@SpringBootApplication @PWA( name = "v18-offline-test", shortName = "v18-offline-test", description = "Vaadin 18 offline app test", ) public class Application extends SpringBootServletInitializer implements AppShellConfigurator {} - start the app and check the http://localhost:8080/manifest.webmanifest file
- see that the
descriptionproperty is missing - compare with V17 and see that there this property is present
Workaround
- create the Web manifest file manually and add the needed
descriptionproperty to it - save the file to a static resources directory (e.g.
src/main/webapp/manifest.webmanifestorsrc/main/resources/META-INF/resources/manifest.webmanifest) - (if the URL of the manually-added manifest file differs from the default:
/manifest.webmanifest) add amanifestPath = "url/of/the/manifest/file"property to the@PWAannotation