uid |
---|
UnoWasmBootstrap.Features.PWA |
A Progressive Web App manifest link definition can be added to the index.html file's head:
- Use the
WasmPWAManifestFile
property to set the file name - Add a Web App Manifest file.
- Ensure the build action is
Content
for this file so it gets copied to the output folder. TheUnoDeploy="Package"
mode (which is the default) must be used. This file must not be put in thewwwroot
folder. - Create a set of icons using the App Image Generator
iOS's support for home screen icon is optionally set by searching for a 1024x1024 icon in the PWA manifest. Not providing this image will make iOS generate a scaled-down screenshot of the application.
You can validate your PWA in the chrome audits tab. If your PWA has all the appropriate metadata, the PWA installer will prompt to install your app.
By default, the msbuild task will calculate a hash for binary files in your project and will use the Subresource Integrity to validate that the right set of files are loaded at runtime.
You can deactivate this feature by setting this property in your .csproj
file:
<WashShellUseFileIntegrity>False</WashShellUseFileIntegrity>