Skip to main content

How to meet the minimum PWA requirements

Checklist

RequirementWhy it matters
Serve the Web App over HTTPS.Installable PWAs require a secure origin.
Expose a Web App Manifest from every page in the app.The manifest defines app-level identity and startup behavior.
Provide the minimum manifest fields required by WebSpatial Runtime.The runtime needs app identity, icon assets, and start-scene settings.
Add the manifest link to every HTML document
<link rel="manifest" href="/app.webmanifest" />

The manifest URL should return a JSON MIME type response, such as application/manifest+json.

Further reading

See MDN and web.dev for more detail on installable PWAs.

Provide the minimum manifest fields

FieldWhat it doesNotes
name or short_nameProvides the app name.At least one of these fields must be present.
iconsProvides app icons.Include at least one "purpose": "any" icon and one "purpose": "maskable" icon that is at least 1024×1024, has no transparent background, and has no rounded corners.
start_urlConfigures the URL for the start scene.This determines which page loads first when the app starts.
displayConfigures the display mode of the webpage window.WebSpatial Runtime currently supports only "standalone" and "minimal-ui".
Minimum manifest for a WebSpatial-ready PWA
{
"name": "My Awesome App",
"start_url": "/",
"display": "minimal-ui",
"icons": [
{
"src": "/pwa-512x512.png",
"sizes": "512x512",
"type": "image/png",
"purpose": "any"
},
{
"src": "/pwa-1024x1024.png",
"sizes": "1024x1024",
"type": "image/png",
"purpose": "maskable"
}
]
}
Sample files

webspatial-icon-examples.zip contains icon files that already satisfy the requirements below.

SizePurposeWhere It AppearsTransparent Background AllowedRounded Corners AllowedHow to Provide It
48 × 48favicon.icoBrowser tabRequiredAllowedHTML <link>
180 × 180iOS app iconiOS "Add to Home Screen"Not allowedNot allowedHTML <link>
192 × 192Standard PWA iconSmall icon on the home screenRequiredRequiredWeb App Manifest
512 × 512Standard PWA iconVarious launch surfaces, app markets, and similar placesRequiredRequiredWeb App Manifest
1024 × 1024Spatial app iconvisionOS, PICO OS 6Not allowedNot allowedWeb App Manifest