⚡ Try it free1 free AI generation + unlimited Lighthouse packs • No credit card required. Unlimited sample prompts.
Imagcon Logo
Imagcon
AI Image & Icon Studio
Troubleshooting
February 23, 2026
4 min read
0 views

How to Fix 'This Site Cannot Be Installed' Error (PWA)

Solve the PWA installation error in your Progressive Web App. Step-by-step troubleshooting for developers.

By Imagcon Team

Quick Answer:

## Quick Answer The install error usually means the browser cannot find a valid manifest, service worker, HTTPS page, start URL, or required app icons.

## Quick Answer The install error usually means the browser cannot find a valid manifest, service worker, HTTPS page, start URL, or required app icons. ## Introduction You have spent hours building a sophisticated Progressive Web App, meticulously writing the manifest, and perfectly configuring your service worker caching strategy. But when you load the app in Chrome, the coveted "Install" button is glaringly missing. You open DevTools, navigate to the Application tab, and are greeted with the frustrating message: "This site cannot be installed in the background." Don't panic. This specific error rarely means your core code is broken. It simply means your PWA hasn't met the browser's strict, non-negotiable installability criteria. Let's systematically troubleshoot the most common culprits step-by-step to get you back on track. ## 1. Missing or Invalid `manifest.json` The web app manifest is the foundational blueprint of your PWA. If it is broken or unreachable, installation fails immediately. * **Check the link tag:** Ensure your `index.html` correctly links to the manifest using `<link rel="manifest" href="/manifest.json">`. * **Validate JSON strictly:** Ensure there are absolutely no trailing commas, missing quotes, or syntax errors in the file. Browsers are unforgiving with invalid JSON. * **Required Core Fields:** Your manifest *must* include `name` (or `short_name`), `start_url`, and `display` (which should generally be set to `standalone`, `fullscreen`, or `minimal-ui`). ## 2. Incomplete or Missing Icons Browsers strictly require specific icons to represent your app on the user's home screen. If they are missing or malformed, the app will not install. * **The 192x192 requirement:** You must include an icon that is exactly 192x192 pixels. * **The 512x512 requirement:** You must also include an icon that is exactly 512x512 pixels. * **Correct paths:** Ensure the `src` paths in the `icons` array exactly match the live location of the files on your server. A 404 HTTP error on an icon will permanently block installation. * **Format:** PNG format is universally supported and highly recommended over JPEG or SVG. ## 3. Service Worker Issues While some modern browsers are slightly relaxing this requirement, historically, a valid service worker that includes a functioning `fetch` event handler is required for a PWA to be fully installable. * **Registration Check:** Ensure your JavaScript actually runs and successfully registers the service worker without throwing console errors. * **Offline capability:** The service worker must be capable of providing a basic offline experience (even if it's just serving a lightweight custom offline fallback page). ## 4. Serving over HTTP (Instead of HTTPS) PWAs require a secure context to run. If you are serving your site over standard, unencrypted HTTP, it will absolutely not be installable anywhere. * **Production Deployment:** You must use HTTPS with a valid SSL certificate. * **Local Development:** Browsers make a special exception for `localhost` and `127.0.0.1`, allowing you to safely test installability locally without needing to configure complex HTTPS certificates. ## 5. Using DevTools to Diagnose The absolute easiest way to pinpoint the exact issue is to let Chrome explicitly tell you what is wrong: 1. Open Chrome DevTools (press F12 or right-click and select Inspect). 2. Go to the **Application** tab at the top. 3. Click on **Manifest** in the left sidebar menu. 4. Look carefully for the "Installability" section. Chrome will list the exact reasons why the app cannot be installed (e.g., "No matching service worker detected", "Downloaded icon was empty or corrupted", or "Start URL does not respond with a 200 OK"). ## Conclusion The "This site cannot be installed" error is rarely a complex architectural code bug; it is almost always a simple configuration checklist issue. By verifying your manifest structure, ensuring your icons are perfectly sized and linked, checking your secure HTTPS context, and heavily relying on DevTools diagnostics, you can quickly solve the issue and get that Install button shining for your users.
Last updated: February 23, 2026

Related Posts:

Ready to Create Your PWA Icons?

Generate all 30 icon files from a text prompt in 30 seconds.