Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 1.52 KB

features-pwa.md

File metadata and controls

26 lines (17 loc) · 1.52 KB
uid
UnoWasmBootstrap.Features.PWA

Support for PWA Manifest File

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. The UnoDeploy="Package" mode (which is the default) must be used. This file must not be put in the wwwroot 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.

Support for Subresource Integrity

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>